Skip to content

Commit

Permalink
Do not make a Fiber for commands
Browse files Browse the repository at this point in the history
because context was changed on suspended threads.
  • Loading branch information
ko1 committed Dec 8, 2023
1 parent 3d44584 commit 04c22c5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/debug/thread_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -865,10 +865,6 @@ class SuspendReplay < Exception
private def fiber_blocking
::Fiber.blocking{yield}
end
elsif ::Fiber.method_defined?(:blocking?)
private def fiber_blocking
::Fiber.new(blocking: true){yield}.resume
end
else
private def fiber_blocking
yield
Expand Down

0 comments on commit 04c22c5

Please sign in to comment.