aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/pubsub/pub.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-15 17:22:05 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-15 17:22:05 -0700
commit3b2f92a953dc82b057067acfc0d9d6185164c1a4 (patch)
treefd8acb9d547be11b178fdb2b3812a26b604f2cec /src/protocol/pubsub/pub.c
parent34ee6ece5adf86a324c89ed4dc96e77ad0dac893 (diff)
downloadnng-3b2f92a953dc82b057067acfc0d9d6185164c1a4.tar.gz
nng-3b2f92a953dc82b057067acfc0d9d6185164c1a4.tar.bz2
nng-3b2f92a953dc82b057067acfc0d9d6185164c1a4.zip
More s/nni_aio_stop/nni_aio_cancel/
Diffstat (limited to 'src/protocol/pubsub/pub.c')
-rw-r--r--src/protocol/pubsub/pub.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/protocol/pubsub/pub.c b/src/protocol/pubsub/pub.c
index 64c2c59d..508ab7ce 100644
--- a/src/protocol/pubsub/pub.c
+++ b/src/protocol/pubsub/pub.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
@@ -171,9 +172,9 @@ nni_pub_pipe_stop(void *arg)
nni_pub_pipe *pp = arg;
nni_pub_sock *pub = pp->pub;
- nni_aio_stop(&pp->aio_getq);
- nni_aio_stop(&pp->aio_send);
- nni_aio_stop(&pp->aio_recv);
+ nni_aio_cancel(&pp->aio_getq, NNG_ECANCELED);
+ nni_aio_cancel(&pp->aio_send, NNG_ECANCELED);
+ nni_aio_cancel(&pp->aio_recv, NNG_ECANCELED);
nni_msgq_close(pp->sendq);
nni_mtx_lock(&pub->mtx);