From 3b2f92a953dc82b057067acfc0d9d6185164c1a4 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 15 Jul 2017 17:22:05 -0700 Subject: More s/nni_aio_stop/nni_aio_cancel/ --- src/protocol/pubsub/pub.c | 7 ++++--- src/protocol/pubsub/sub.c | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'src/protocol/pubsub') 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 +// Copyright 2017 Capitar IT Group BV // // 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); diff --git a/src/protocol/pubsub/sub.c b/src/protocol/pubsub/sub.c index bc4de973..36a42c49 100644 --- a/src/protocol/pubsub/sub.c +++ b/src/protocol/pubsub/sub.c @@ -1,5 +1,6 @@ // // Copyright 2017 Garrett D'Amore +// Copyright 2017 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -122,8 +123,8 @@ nni_sub_pipe_stop(void *arg) { nni_sub_pipe *sp = arg; - nni_aio_stop(&sp->aio_putq); - nni_aio_stop(&sp->aio_recv); + nni_aio_cancel(&sp->aio_putq, NNG_ECANCELED); + nni_aio_cancel(&sp->aio_recv, NNG_ECANCELED); } static void -- cgit v1.2.3-70-g09d2