lib/locker/label.rb in lita-locker-1.1.1 vs lib/locker/label.rb in lita-locker-1.2.0

- old
+ new

@@ -93,10 +93,10 @@ end end log('Unlocked') # FIXME: Possible race condition where resources become unavailable between unlock and relock - if wait_queue.count.positive? + if wait_queue.count > 0 next_user = wait_queue.shift lock!(next_user) end true end