diff options
| author | josh salit <47824128+JoshSalitSonos@users.noreply.github.com> | 2023-02-05 16:43:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-05 19:43:16 -0400 |
| commit | 8461c7207b440f5ba8c51b2236fcfa178f415a6f (patch) | |
| tree | 826ae6b44acc4183c79406e23fe2d6132ef2d46e /src/core/aio.c | |
| parent | 45780139f287331b572fe99f5986a795d2eef87a (diff) | |
| download | nng-8461c7207b440f5ba8c51b2236fcfa178f415a6f.tar.gz nng-8461c7207b440f5ba8c51b2236fcfa178f415a6f.tar.bz2 nng-8461c7207b440f5ba8c51b2236fcfa178f415a6f.zip | |
fixes 1543 (#1616)
fixes #1543 by aborting tasks that may have been prepped, but not yet started.
Diffstat (limited to 'src/core/aio.c')
| -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); } |
