diff options
Diffstat (limited to 'lib/timeout.rb')
-rw-r--r-- | lib/timeout.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/timeout.rb b/lib/timeout.rb index 996df6e859..24ffccb0da 100644 --- a/lib/timeout.rb +++ b/lib/timeout.rb @@ -99,6 +99,7 @@ module Timeout def self.create_timeout_thread Thread.new do + Thread.current.thread_variable_set(:"\0__detached_thread__", true) requests = [] while true until QUEUE.empty? and !requests.empty? # wait to have at least one request |