From 0d48c9d4f359ec79f9cc10db3e0e04cb7a58623e Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 15 Jul 2017 16:50:49 -0700 Subject: Race conditions removed... TCP tests work well know. --- src/core/pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/pipe.c') diff --git a/src/core/pipe.c b/src/core/pipe.c index f1e8014e..3d0f96ab 100644 --- a/src/core/pipe.c +++ b/src/core/pipe.c @@ -100,7 +100,7 @@ nni_pipe_close(nni_pipe *p) p->p_reap = 1; // abort any pending negotiation/start process. - nni_aio_stop(&p->p_start_aio); + nni_aio_cancel(&p->p_start_aio, NNG_ECLOSED); // Close the underlying transport. if (p->p_tran_data != NULL) { -- cgit v1.2.3-70-g09d2