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; }