summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/thread.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thread.rb b/lib/thread.rb
index 68eeaf5b0..e5585c30b 100644
--- a/lib/thread.rb
+++ b/lib/thread.rb
@@ -292,7 +292,7 @@ class SizedQueue < Queue
t = nil
@mutex.synchronize{
while true
- break if @que.length <= @max
+ break if @que.length < @max
@queue_wait.push Thread.current
@mutex.sleep
end