Skip to content

Commit 9a9b03b

Browse files
committed
Hack to avoid leak checker
1 parent f69f954 commit 9a9b03b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/timeout.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def finished
9999

100100
def self.create_timeout_thread
101101
Thread.new do
102+
Thread.current.thread_variable_set(:"\0__detached_thread__", true)
102103
requests = []
103104
while true
104105
until QUEUE.empty? and !requests.empty? # wait to have at least one request

0 commit comments

Comments
 (0)