Skip to content

Commit

Permalink
Stop children even if the current task is deferring stop.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jul 12, 2024
1 parent 6874cb9 commit 2f2deef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/async/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ def stop(later = false)
if @defer_stop == false
# Don't stop now... but update the state so we know we need to stop later.
@defer_stop = true

stop_children(false)

return false
end

Expand Down

0 comments on commit 2f2deef

Please sign in to comment.