aboutsummaryrefslogtreecommitdiff
path: root/src/core/aio.c
diff options
context:
space:
mode:
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);