diff --git a/lib/async/task.rb b/lib/async/task.rb index 3db30a31..97a6f00d 100644 --- a/lib/async/task.rb +++ b/lib/async/task.rb @@ -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