diff options
Diffstat (limited to 'lib/rainbows/thread_timeout.rb')
-rw-r--r-- | lib/rainbows/thread_timeout.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/thread_timeout.rb b/lib/rainbows/thread_timeout.rb index b9f6025..18f400b 100644 --- a/lib/rainbows/thread_timeout.rb +++ b/lib/rainbows/thread_timeout.rb @@ -90,7 +90,7 @@ class Rainbows::ThreadTimeout now = Time.now @lock.synchronize do @active.delete_if do |thread, time| - time >= now and thread.raise(ExecutionExpired).nil? + now >= time and thread.raise(ExecutionExpired).nil? end end end while true |