diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/aio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/aio.c b/src/core/aio.c index 771cbc95..1556a950 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -216,6 +216,9 @@ nni_aio_stop(nni_aio *aio) if (fn != NULL) { fn(aio, arg, NNG_ECANCELED); } + + // catch any tasks that have been prepped but not yet started. + nni_task_abort(&aio->a_task); nni_aio_wait(aio); } |
