Skip to content

Commit

Permalink
fixes #2092 nng_close may hang on Windows (stable version)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Jan 26, 2025
1 parent 2b30e76 commit d98d3ec
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 (aio == nni_list_first(&l->aios)) {
l->rv = rv;
CancelIoEx(l->f, &l->io.olpd);
Expand Down

0 comments on commit d98d3ec

Please sign in to comment.