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/pipeline/push.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/protocol/pipeline/push.c') diff --git a/src/protocol/pipeline/push.c b/src/protocol/pipeline/push.c index f1da0a9f..43c0feaf 100644 --- a/src/protocol/pipeline/push.c +++ b/src/protocol/pipeline/push.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 @@ -134,9 +135,9 @@ nni_push_pipe_stop(void *arg) nni_push_pipe *pp = arg; nni_push_sock *push = pp->push; - nni_aio_stop(&pp->aio_recv); - nni_aio_stop(&pp->aio_send); - nni_aio_stop(&pp->aio_getq); + nni_aio_cancel(&pp->aio_recv, NNG_ECANCELED); + nni_aio_cancel(&pp->aio_send, NNG_ECANCELED); + nni_aio_cancel(&pp->aio_getq, NNG_ECANCELED); } static void -- cgit v1.2.3-70-g09d2