diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-08-24 19:32:01 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-08-24 19:32:01 -0700 |
| commit | 405f6e5849c492705f3e30974c9eec3f595ed6bb (patch) | |
| tree | 6e9b7de866ff1e3effe2a1106ac80dd1f8be321e /src/core/aio.c | |
| parent | ea50bfbc237eb2e263fdbf341dce0df0707dda5c (diff) | |
| download | nng-405f6e5849c492705f3e30974c9eec3f595ed6bb.tar.gz nng-405f6e5849c492705f3e30974c9eec3f595ed6bb.tar.bz2 nng-405f6e5849c492705f3e30974c9eec3f595ed6bb.zip | |
Endpoint cancellation needs lock protection.
Diffstat (limited to 'src/core/aio.c')
| -rw-r--r-- | src/core/aio.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |
