about summary refs log tree commit homepage
path: root/lib/rainbows/thread_timeout.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/thread_timeout.rb')
-rw-r--r--lib/rainbows/thread_timeout.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/thread_timeout.rb b/lib/rainbows/thread_timeout.rb
index 44baf9a..3d28daf 100644
--- a/lib/rainbows/thread_timeout.rb
+++ b/lib/rainbows/thread_timeout.rb
@@ -93,7 +93,7 @@ class Rainbows::ThreadTimeout
           sleep(@timeout)
         else
           sec = next_expiry - Time.now
-          sec > 0.0 ? sleep(sec) : Thread.pass
+          sec > 0.0 ? sleep(sec) : Thread.pass # give other threads a chance
         end
       rescue => e
         logger.error e