Skip to content

Commit

Permalink
Raise Stop directly in #defer_stop. (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix authored Mar 27, 2024
1 parent 959fc48 commit 20a7083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/async/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def defer_stop
# If we were asked to stop, we should do so now:
if @defer_stop
@defer_stop = nil
self.stop
raise Stop, "Stopping current task (was deferred)!"
end
end
else
Expand Down

0 comments on commit 20a7083

Please sign in to comment.