lib/ffi/libfuse/thread_pool.rb in ffi-libfuse-0.0.1.pre vs lib/ffi/libfuse/thread_pool.rb in ffi-libfuse-0.0.1.rctest11
- old
+ new
@@ -134,10 +134,10 @@
end
def idle_limit_exceeded?
return false unless @max_idle
- synchronize { (@size - @busy - @idle_death.size - 1) > @max_idle && @idle_death << Thread.current }
+ synchronize { (@size - @busy - @idle_death.size - 1) > @max_idle && (@idle_death << Thread.current) }
end
def synchronize(&block)
@mutex.synchronize(&block)
end