From a267b68ad921d115615abfc15de25a947e86fe38 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 11 Oct 2009 20:54:05 -0700 Subject: Fix graceful shutdowns for threaded models They were completely broken in the refactoring :x --- lib/rainbows/thread_spawn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/thread_spawn.rb') diff --git a/lib/rainbows/thread_spawn.rb b/lib/rainbows/thread_spawn.rb index 77cc3f2..05068fc 100644 --- a/lib/rainbows/thread_spawn.rb +++ b/lib/rainbows/thread_spawn.rb @@ -50,7 +50,7 @@ module Rainbows rescue Object => e listen_loop_error(e) if LISTENERS.first end while LISTENERS.first && master_pid == Process.ppid - join_threads(threads.list) + join_threads(threads.list, worker) end end -- cgit v1.2.3-24-ge0c7