From c436e174d0ed8c5dc14af060e994b97a83df7750 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 10 Mar 2017 14:39:21 -0800 Subject: Start of close related race fixes. Scalability test. --- src/core/aio.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/aio.c') diff --git a/src/core/aio.c b/src/core/aio.c index ffc5ac06..2f871f73 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -41,6 +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_cv_fini(&aio->a_cv); nni_mtx_fini(&aio->a_lk); } -- cgit v1.2.3-70-g09d2