Skip to content

Commit d98d3ec

Browse files
committed
fixes #2092 nng_close may hang on Windows (stable version)
1 parent 2b30e76 commit d98d3ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/windows/win_ipclisten.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ ipc_accept_cancel(nni_aio *aio, void *arg, int rv)
249249
{
250250
ipc_listener *l = arg;
251251

252-
nni_mtx_unlock(&l->mtx);
252+
nni_mtx_lock(&l->mtx);
253253
if (aio == nni_list_first(&l->aios)) {
254254
l->rv = rv;
255255
CancelIoEx(l->f, &l->io.olpd);

0 commit comments

Comments
 (0)