diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-07-15 17:22:05 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-07-15 17:22:05 -0700 |
| commit | 3b2f92a953dc82b057067acfc0d9d6185164c1a4 (patch) | |
| tree | fd8acb9d547be11b178fdb2b3812a26b604f2cec /src/protocol/pubsub/sub.c | |
| parent | 34ee6ece5adf86a324c89ed4dc96e77ad0dac893 (diff) | |
| download | nng-3b2f92a953dc82b057067acfc0d9d6185164c1a4.tar.gz nng-3b2f92a953dc82b057067acfc0d9d6185164c1a4.tar.bz2 nng-3b2f92a953dc82b057067acfc0d9d6185164c1a4.zip | |
More s/nni_aio_stop/nni_aio_cancel/
Diffstat (limited to 'src/protocol/pubsub/sub.c')
| -rw-r--r-- | src/protocol/pubsub/sub.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <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 @@ -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 |
