about summary refs log tree commit homepage
path: root/lib/rainbows/writer_thread_spawn
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-05 17:06:20 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-06 07:17:19 +0000
commit6bde32081338ce8075854f4c47ce8ca5347df919 (patch)
tree71759032be458838eb33f7951172e8572aec4b6d /lib/rainbows/writer_thread_spawn
parentd6e4975937a9590f48dc39b1a4aefa9d62f34616 (diff)
downloadrainbows-6bde32081338ce8075854f4c47ce8ca5347df919.tar.gz
Code organization is hard :<
Diffstat (limited to 'lib/rainbows/writer_thread_spawn')
-rw-r--r--lib/rainbows/writer_thread_spawn/client.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rainbows/writer_thread_spawn/client.rb b/lib/rainbows/writer_thread_spawn/client.rb
index 15264d0..b4166fa 100644
--- a/lib/rainbows/writer_thread_spawn/client.rb
+++ b/lib/rainbows/writer_thread_spawn/client.rb
@@ -54,10 +54,9 @@ class Rainbows::WriterThreadSpawn::Client < Struct.new(:to_io, :q, :thr)
   include Methods
 
   def self.quit
-    g = Rainbows::G
     CUR.delete_if do |t,q|
       q << nil
-      g.tick
+      Rainbows.tick
       t.alive? ? t.join(0.01) : true
     end until CUR.empty?
   end