From 34ee6ece5adf86a324c89ed4dc96e77ad0dac893 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 15 Jul 2017 17:13:36 -0700 Subject: Bus, Req/Rep, and Surv/Resp should use aio_cancel instead of aio_stop. --- src/protocol/survey/respond.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/protocol/survey/respond.c') diff --git a/src/protocol/survey/respond.c b/src/protocol/survey/respond.c index c2b8cd18..685f39fd 100644 --- a/src/protocol/survey/respond.c +++ b/src/protocol/survey/respond.c @@ -113,7 +113,7 @@ nni_resp_sock_close(void *arg) { nni_resp_sock *psock = arg; - nni_aio_stop(&psock->aio_getq); + nni_aio_cancel(&psock->aio_getq, NNG_ECLOSED); } static int @@ -195,10 +195,10 @@ nni_resp_pipe_stop(void *arg) nni_resp_sock *psock = ppipe->psock; nni_msgq_close(ppipe->sendq); - nni_aio_stop(&ppipe->aio_putq); - nni_aio_stop(&ppipe->aio_getq); - nni_aio_stop(&ppipe->aio_send); - nni_aio_stop(&ppipe->aio_recv); + nni_aio_cancel(&ppipe->aio_putq, NNG_ECANCELED); + nni_aio_cancel(&ppipe->aio_getq, NNG_ECANCELED); + nni_aio_cancel(&ppipe->aio_send, NNG_ECANCELED); + nni_aio_cancel(&ppipe->aio_recv, NNG_ECANCELED); if (ppipe->id != 0) { nni_idhash_remove(psock->pipes, ppipe->id); -- cgit v1.2.3-70-g09d2