mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/mspec@37151a0
This commit is contained in:
parent
d694f320e4
commit
b5358a98e6
1 changed files with 2 additions and 1 deletions
|
@ -173,7 +173,8 @@ class LeakChecker
|
||||||
|
|
||||||
def find_threads
|
def find_threads
|
||||||
Thread.list.find_all {|t|
|
Thread.list.find_all {|t|
|
||||||
t != Thread.current && t.alive?
|
t != Thread.current && t.alive? &&
|
||||||
|
!(t.thread_variable?(:"\0__detached_thread__") && t.thread_variable_get(:"\0__detached_thread__"))
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue