Skip to content

Commit

Permalink
fixes 1543 (nanomsg#1616)
Browse files Browse the repository at this point in the history
fixes nanomsg#1543 by aborting tasks that may have been prepped, but not yet started.
  • Loading branch information
JoshSalitSonos authored Feb 5, 2023
1 parent 4578013 commit 8461c72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8461c72

Please sign in to comment.