diff --git a/lib/debug/thread_client.rb b/lib/debug/thread_client.rb index c106a58ec..b0e9d46f2 100644 --- a/lib/debug/thread_client.rb +++ b/lib/debug/thread_client.rb @@ -865,12 +865,13 @@ class SuspendReplay < Exception private def fiber_blocking ::Fiber.blocking{yield} end - else + elsif ::Fiber.method_defined?(:blocking?) private def fiber_blocking - yield + ::Fiber.new(blocking: true){yield}.resume end + else + yield end - def wait_next_action fiber_blocking{wait_next_action_}