aboutsummaryrefslogtreecommitdiff
path: root/src/core/aio.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-06-08 22:56:45 -0700
committerGarrett D'Amore <garrett@damore.org>2017-06-08 22:56:45 -0700
commit23898a85c30d8f4f230303c362e91074a2b29b71 (patch)
tree4777d63a25cf229ea65465978013721b36633b10 /src/core/aio.c
parent402c355eee701976a6c8ee00f6a915d1e417e163 (diff)
downloadnng-23898a85c30d8f4f230303c362e91074a2b29b71.tar.gz
nng-23898a85c30d8f4f230303c362e91074a2b29b71.tar.bz2
nng-23898a85c30d8f4f230303c362e91074a2b29b71.zip
Fix taskq_cancel race.
Diffstat (limited to 'src/core/aio.c')
-rw-r--r--src/core/aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/aio.c b/src/core/aio.c
index 2f871f73..11aadcb7 100644
--- a/src/core/aio.c
+++ b/src/core/aio.c
@@ -41,7 +41,7 @@ nni_aio_init(nni_aio *aio, nni_cb cb, void *arg)
void
nni_aio_fini(nni_aio *aio)
{
- nni_taskq_cancel(&aio->a_tqe);
+ nni_taskq_cancel(NULL, &aio->a_tqe);
nni_cv_fini(&aio->a_cv);
nni_mtx_fini(&aio->a_lk);
}