Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/timeout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ def expired?(now)
def interrupt
@mutex.synchronize do
unless @done
@thread.raise @exception_class, @message
begin
@thread.raise @exception_class, @message
rescue => error
@thread.raise error
end
@done = true
end
end
Expand Down