From 36bd0c71ce7a0bfbb22ffc99aa0dd94ed95cfc64 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 29 Jun 2017 11:33:01 -0700 Subject: Pass cancel of IPC and TCP all the way down to POSIX pipedescs. --- src/core/aio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/aio.c') diff --git a/src/core/aio.c b/src/core/aio.c index 96e7c950..6a57ad52 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -116,6 +116,8 @@ nni_aio_start(nni_aio *aio, void (*cancel)(nni_aio *), void *data) nni_mtx_unlock(&aio->a_lk); return (NNG_ECANCELED); } + aio->a_result = 0; + aio->a_count = 0; aio->a_prov_cancel = cancel; aio->a_prov_data = data; nni_mtx_unlock(&aio->a_lk); -- cgit v1.2.3-70-g09d2