lib/async/task.rb in async-2.10.0 vs lib/async/task.rb in async-2.10.1
- old
+ new
@@ -273,10 +273,10 @@
raise
ensure
# 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
# If we are deferring stop already, entering it again is a no-op.
yield