From 8461c7207b440f5ba8c51b2236fcfa178f415a6f Mon Sep 17 00:00:00 2001 From: josh salit <47824128+JoshSalitSonos@users.noreply.github.com> Date: Sun, 5 Feb 2023 16:43:16 -0700 Subject: fixes 1543 (#1616) fixes #1543 by aborting tasks that may have been prepped, but not yet started. --- src/core/aio.c | 3 +++ 1 file changed, 3 insertions(+) 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); } -- cgit v1.2.3-70-g09d2