From 34ee6ece5adf86a324c89ed4dc96e77ad0dac893 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 15 Jul 2017 17:13:36 -0700 Subject: Bus, Req/Rep, and Surv/Resp should use aio_cancel instead of aio_stop. --- src/protocol/bus/bus.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/protocol/bus') diff --git a/src/protocol/bus/bus.c b/src/protocol/bus/bus.c index 8c9ed83c..c235e60a 100644 --- a/src/protocol/bus/bus.c +++ b/src/protocol/bus/bus.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 @@ -182,10 +183,10 @@ nni_bus_pipe_stop(void *arg) nni_msgq_close(ppipe->sendq); - nni_aio_stop(&ppipe->aio_getq); - nni_aio_stop(&ppipe->aio_send); - nni_aio_stop(&ppipe->aio_recv); - nni_aio_stop(&ppipe->aio_putq); + nni_aio_cancel(&ppipe->aio_getq, NNG_ECLOSED); + nni_aio_cancel(&ppipe->aio_send, NNG_ECLOSED); + nni_aio_cancel(&ppipe->aio_recv, NNG_ECLOSED); + nni_aio_cancel(&ppipe->aio_putq, NNG_ECLOSED); nni_mtx_lock(&ppipe->psock->mtx); if (nni_list_active(&psock->pipes, ppipe)) { -- cgit v1.2.3-70-g09d2