From 96d655ed4f91b757c43091e0f92be9c5586041b8 Mon Sep 17 00:00:00 2001 From: Lev Brouk Date: Sun, 3 Nov 2024 07:40:38 -0800 Subject: [PATCH] TRY MORE, +16 --- src/micro.c | 2 -- src/micro_endpoint.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/micro.c b/src/micro.c index 114f0cdd..dbb5fdf8 100644 --- a/src/micro.c +++ b/src/micro.c @@ -329,7 +329,6 @@ _stop_service(microService *m, bool detachFromConnection, bool unsubscribe, bool m->stopped = true; else alreadyStopped = true; - _unlock_service(m); if (!alreadyStopped && unsubscribe) { @@ -343,7 +342,6 @@ _stop_service(microService *m, bool detachFromConnection, bool unsubscribe, bool } } - _lock_service(m); if (detached) m->refs--; if ((m->refs > 0) && release) diff --git a/src/micro_endpoint.c b/src/micro_endpoint.c index 44afaa20..ff7219f9 100644 --- a/src/micro_endpoint.c +++ b/src/micro_endpoint.c @@ -113,7 +113,7 @@ micro_stop_endpoint(microEndpoint *ep) return microError_Wrapf(micro_ErrorFromStatus(s), "failed to drain subscription"); } - printf("<>/<> Stoped endpoint %p, %s %s!!!!\n", ep, ep->m->cfg->Name, ep->subject); fflush(stdout); + printf("<>/<> Stopped endpoint %p, %s %s!!!!\n", ep, ep->m->cfg->Name, ep->subject); fflush(stdout); return NULL; }