From ed869514211a908748f04a881e6fb18a395914ae Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 8 May 2011 07:47:03 +0000 Subject: join_threads: simplify thread stoppage check No need for a string comparison --- lib/rainbows/join_threads.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/join_threads.rb') diff --git a/lib/rainbows/join_threads.rb b/lib/rainbows/join_threads.rb index 5d5c64f..7ab2004 100644 --- a/lib/rainbows/join_threads.rb +++ b/lib/rainbows/join_threads.rb @@ -10,7 +10,7 @@ module Rainbows::JoinThreads Rainbows.tick begin # blocking accept() may not wake up properly - thr.raise(Errno::EINTR) if Time.now > expire && "sleep" == thr.status + thr.raise(Errno::EINTR) if Time.now > expire && thr.stop? thr.run thr.join(0.01) -- cgit v1.2.3-24-ge0c7