Skip to content

Commit

Permalink
pair1: tweaks to aio shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Dec 4, 2024
1 parent 80d2283 commit a00a9fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sp/protocol/pair1/pair.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ pair1_pipe_stop(void *arg)
pair1_pipe *p = arg;
pair1_sock *s = p->pair;

nni_aio_stop(&p->aio_send);
nni_aio_stop(&p->aio_recv);
nni_aio_close(&p->aio_send);
nni_aio_close(&p->aio_recv);
nni_mtx_lock(&s->mtx);
if (s->p == p) {
s->p = NULL;
Expand All @@ -218,6 +218,8 @@ pair1_pipe_stop(void *arg)
}
}
nni_mtx_unlock(&s->mtx);
nni_aio_stop(&p->aio_send);
nni_aio_stop(&p->aio_recv);
}

static void
Expand Down

0 comments on commit a00a9fc

Please sign in to comment.