about summary refs log tree commit homepage
path: root/lib/rainbows/writer_thread_spawn.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-27 02:36:58 +0000
committerEric Wong <normalperson@yhbt.net>2010-12-27 02:36:58 +0000
commita310302708faa19042282e94525544cfbb23eba5 (patch)
tree3a37f24e0097dc7cb276c3ee3b7ff26239c67ccb /lib/rainbows/writer_thread_spawn.rb
parent6ae020c9ac483d822902b5d33f038f79b44d3a50 (diff)
downloadrainbows-a310302708faa19042282e94525544cfbb23eba5.tar.gz
Self-documenting code is easier to follow
Diffstat (limited to 'lib/rainbows/writer_thread_spawn.rb')
-rw-r--r--lib/rainbows/writer_thread_spawn.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/rainbows/writer_thread_spawn.rb b/lib/rainbows/writer_thread_spawn.rb
index a11e82c..0e7d1a7 100644
--- a/lib/rainbows/writer_thread_spawn.rb
+++ b/lib/rainbows/writer_thread_spawn.rb
@@ -32,12 +32,8 @@ module Rainbows::WriterThreadSpawn
 
   def worker_loop(worker)  # :nodoc:
     Client.const_set(:MAX, worker_connections)
-    super(worker) # accept loop from Unicorn
-    Client::CUR.delete_if do |t,q|
-      q << nil
-      G.tick
-      t.alive? ? t.join(0.01) : true
-    end until Client::CUR.empty?
+    super # accept loop from Unicorn
+    Client.quit
   end
   # :startdoc:
 end