mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/timeout] Hack to avoid leak checker
https://github.com/ruby/timeout/commit/9a9b03b44c
This commit is contained in:
parent
cdfb027213
commit
e77e233935
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue