mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:49:14 +08:00
BUGFIX: race condition in blocking_tick
causes erratic spec failure
This commit is contained in:
parent
f27ffe3223
commit
0efcb9cee9
|
@ -45,7 +45,7 @@ module Scheduler
|
|||
end
|
||||
|
||||
def wait_till_done
|
||||
while !@queue.empty? && !@queue.num_waiting == 1
|
||||
while !@queue.empty? && !@queue.num_waiting > 0
|
||||
sleep 0.001
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user