diff --git a/src/micro.c b/src/micro.c index 86a572739..b61c3776a 100644 --- a/src/micro.c +++ b/src/micro.c @@ -381,11 +381,11 @@ _retain_service(microService *m) if (m == NULL) return; - _lock_service(m); + // _lock_service(m); ++(m->refs); - _unlock_service(m); + // _unlock_service(m); } static void diff --git a/src/nats.c b/src/nats.c index a8305cd2e..1c2973d63 100644 --- a/src/nats.c +++ b/src/nats.c @@ -286,7 +286,7 @@ _freeAsyncCbs(void) { natsLibAsyncCbs *cbs = &(gLib.asyncCbs); - // natsThread_Destroy(cbs->thread); + natsThread_Destroy(cbs->thread); natsCondition_Destroy(cbs->cond); natsMutex_Destroy(cbs->lock); }