From 23898a85c30d8f4f230303c362e91074a2b29b71 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 8 Jun 2017 22:56:45 -0700 Subject: Fix taskq_cancel race. --- src/core/aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/aio.c') 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); } -- cgit v1.2.3-70-g09d2