Skip to content

Commit

Permalink
fixes #2092 nng_close may hang on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Jan 26, 2025
1 parent 98b0d43 commit dba356d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/windows/win_ipclisten.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ ipc_accept_cancel(nni_aio *aio, void *arg, int rv)
{
ipc_listener *l = arg;

nni_mtx_unlock(&l->mtx);
nni_mtx_lock(&l->mtx);
if (nni_aio_list_active(aio)) {
nni_aio_list_remove(aio);
nni_aio_finish_error(aio, rv);
Expand Down

0 comments on commit dba356d

Please sign in to comment.