aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/reqrep/rep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/reqrep/rep.c')
-rw-r--r--src/protocol/reqrep/rep.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/protocol/reqrep/rep.c b/src/protocol/reqrep/rep.c
index f35726d8..1e4ee4ef 100644
--- a/src/protocol/reqrep/rep.c
+++ b/src/protocol/reqrep/rep.c
@@ -114,7 +114,7 @@ nni_rep_sock_close(void *arg)
{
nni_rep_sock *rep = arg;
- nni_aio_stop(&rep->aio_getq);
+ nni_aio_cancel(&rep->aio_getq, NNG_ECLOSED);
}
static int
@@ -191,10 +191,10 @@ nni_rep_pipe_stop(void *arg)
nni_rep_pipe *rp = arg;
nni_rep_sock *rep = rp->rep;
- nni_aio_stop(&rp->aio_getq);
- nni_aio_stop(&rp->aio_putq);
- nni_aio_stop(&rp->aio_send);
- nni_aio_stop(&rp->aio_recv);
+ nni_aio_cancel(&rp->aio_getq, NNG_ECANCELED);
+ nni_aio_cancel(&rp->aio_putq, NNG_ECANCELED);
+ nni_aio_cancel(&rp->aio_send, NNG_ECANCELED);
+ nni_aio_cancel(&rp->aio_recv, NNG_ECANCELED);
nni_msgq_close(rp->sendq);
nni_idhash_remove(rep->pipes, nni_pipe_id(rp->pipe));