Skip to content

Commit d1b1066

Browse files
committed
Don't report on IO.select failure since it will be re-raised.
1 parent f9044b9 commit d1b1066

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/async/scheduler.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,9 @@ def process_wait(pid, flags)
420420
# @asynchronous May be non-blocking.
421421
def io_select(...)
422422
Thread.new do
423+
# Don't make unnecessary output, since we will propagate the exception:
424+
Thread.current.report_on_exception = false
425+
423426
::IO.select(...)
424427
end.value
425428
end

0 commit comments

Comments
 (0)