aboutsummaryrefslogtreecommitdiff
path: root/src/core/aio.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-06-29 11:33:01 -0700
committerGarrett D'Amore <garrett@damore.org>2017-06-29 11:33:01 -0700
commit36bd0c71ce7a0bfbb22ffc99aa0dd94ed95cfc64 (patch)
treea2ab064810f269fac8e9b0473685a02c5643f5c9 /src/core/aio.c
parentd0c0c9969ab5552889f91d09db6dbf6b79f6705c (diff)
downloadnng-36bd0c71ce7a0bfbb22ffc99aa0dd94ed95cfc64.tar.gz
nng-36bd0c71ce7a0bfbb22ffc99aa0dd94ed95cfc64.tar.bz2
nng-36bd0c71ce7a0bfbb22ffc99aa0dd94ed95cfc64.zip
Pass cancel of IPC and TCP all the way down to POSIX pipedescs.
Diffstat (limited to 'src/core/aio.c')
-rw-r--r--src/core/aio.c2
1 files changed, 2 insertions, 0 deletions
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);