aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/bus/bus.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-15 17:13:36 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-15 17:13:36 -0700
commit34ee6ece5adf86a324c89ed4dc96e77ad0dac893 (patch)
tree0f17bc7acb142173491422a9013842c74fb36836 /src/protocol/bus/bus.c
parentbef8ea546a7efd2726f51207e26eafc75979573d (diff)
downloadnng-34ee6ece5adf86a324c89ed4dc96e77ad0dac893.tar.gz
nng-34ee6ece5adf86a324c89ed4dc96e77ad0dac893.tar.bz2
nng-34ee6ece5adf86a324c89ed4dc96e77ad0dac893.zip
Bus, Req/Rep, and Surv/Resp should use aio_cancel instead of aio_stop.
Diffstat (limited to 'src/protocol/bus/bus.c')
-rw-r--r--src/protocol/bus/bus.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/protocol/bus/bus.c b/src/protocol/bus/bus.c
index 8c9ed83c..c235e60a 100644
--- a/src/protocol/bus/bus.c
+++ b/src/protocol/bus/bus.c
@@ -1,5 +1,6 @@
//
// Copyright 2017 Garrett D'Amore <garrett@damore.org>
+// Copyright 2017 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
@@ -182,10 +183,10 @@ nni_bus_pipe_stop(void *arg)
nni_msgq_close(ppipe->sendq);
- nni_aio_stop(&ppipe->aio_getq);
- nni_aio_stop(&ppipe->aio_send);
- nni_aio_stop(&ppipe->aio_recv);
- nni_aio_stop(&ppipe->aio_putq);
+ nni_aio_cancel(&ppipe->aio_getq, NNG_ECLOSED);
+ nni_aio_cancel(&ppipe->aio_send, NNG_ECLOSED);
+ nni_aio_cancel(&ppipe->aio_recv, NNG_ECLOSED);
+ nni_aio_cancel(&ppipe->aio_putq, NNG_ECLOSED);
nni_mtx_lock(&ppipe->psock->mtx);
if (nni_list_active(&psock->pipes, ppipe)) {