Skip to content

Commit

Permalink
With a thread leak, 2
Browse files Browse the repository at this point in the history
  • Loading branch information
levb committed Apr 23, 2024
1 parent db5116b commit 7116293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/micro.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/nats.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7116293

Please sign in to comment.