diff options
Diffstat (limited to 'src/core/aio.c')
| -rw-r--r-- | src/core/aio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/aio.c b/src/core/aio.c index 2f90aa34..6276589b 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -387,7 +387,8 @@ nni_aio_abort(nni_aio *aio, int rv) nni_aio_cancelfn cancelfn; nni_mtx_lock(&nni_aio_lk); - cancelfn = aio->a_prov_cancel; + cancelfn = aio->a_prov_cancel; + aio->a_prov_cancel = NULL; nni_mtx_unlock(&nni_aio_lk); // Stop any I/O at the provider level. |
