From 405f6e5849c492705f3e30974c9eec3f595ed6bb Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 24 Aug 2017 19:32:01 -0700 Subject: Endpoint cancellation needs lock protection. --- src/core/aio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/aio.c') diff --git a/src/core/aio.c b/src/core/aio.c index ee5724a6..5b8c7970 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -171,8 +171,7 @@ nni_aio_finish_impl( { nni_mtx_lock(&nni_aio_lk); - // provider only calls us *once*, but expiration may be in flight - NNI_ASSERT(aio->a_expiring || aio->a_pend == 0); + NNI_ASSERT(aio->a_pend == 0); // provider only calls us *once* nni_list_node_remove(&aio->a_expire_node); aio->a_pend = 1; -- cgit v1.2.3-70-g09d2