aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/pair
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/pair')
-rw-r--r--src/protocol/pair/pair.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/protocol/pair/pair.c b/src/protocol/pair/pair.c
index 30302352..f5fec540 100644
--- a/src/protocol/pair/pair.c
+++ b/src/protocol/pair/pair.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
@@ -157,10 +158,10 @@ nni_pair_pipe_stop(void *arg)
nni_pair_pipe *ppipe = arg;
nni_pair_sock *psock = ppipe->psock;
- nni_aio_stop(&ppipe->aio_send);
- nni_aio_stop(&ppipe->aio_recv);
- nni_aio_stop(&ppipe->aio_putq);
- nni_aio_stop(&ppipe->aio_getq);
+ nni_aio_cancel(&ppipe->aio_send, NNG_ECANCELED);
+ nni_aio_cancel(&ppipe->aio_recv, NNG_ECANCELED);
+ nni_aio_cancel(&ppipe->aio_putq, NNG_ECANCELED);
+ nni_aio_cancel(&ppipe->aio_getq, NNG_ECANCELED);
nni_mtx_lock(&psock->mtx);
if (psock->ppipe == ppipe) {