socketry / async

An awesome asynchronous event-driven reactor for Ruby.
MIT License
2.16k stars 90 forks source link

Transient tasks should only be stopped once. #338

Closed ioquatix closed 3 months ago

ioquatix commented 3 months ago

Transient tasks which use defer_stop exit too early in Task#stop. If the task is not made non-transient, an iteration of the event loop may send stop a 2nd time, even if stop is deferred.

Types of Changes

Contribution