Skip to content

Commit

Permalink
new behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jjb committed Sep 25, 2021
1 parent b514f40 commit a5282a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/sane_timeout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def timeout(sec, klass = nil) #:yield: +sec+
rescue => e
x.raise e
else
x.kill
x.raise exception, "execution expired"
x.join
current_thread.raise exception, "execution expired"
end
}
Expand Down

0 comments on commit a5282a2

Please sign in to comment.