about summary refs log tree commit homepage
path: root/lib/rainbows/coolio_thread_pool/watcher.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/coolio_thread_pool/watcher.rb')
-rw-r--r--lib/rainbows/coolio_thread_pool/watcher.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/rainbows/coolio_thread_pool/watcher.rb b/lib/rainbows/coolio_thread_pool/watcher.rb
index 9b0e97e..6537ebc 100644
--- a/lib/rainbows/coolio_thread_pool/watcher.rb
+++ b/lib/rainbows/coolio_thread_pool/watcher.rb
@@ -1,14 +1,12 @@
 # -*- encoding: binary -*-
 # :enddoc:
 class Rainbows::CoolioThreadPool::Watcher < Coolio::TimerWatcher
-  G = Rainbows::G
-
   def initialize(threads)
     @threads = threads
-    super(G.server.timeout, true)
+    super(Rainbows.server.timeout, true)
   end
 
   def on_timer
-    @threads.each { |t| t.join(0) and G.quit! }
+    @threads.each { |t| t.join(0) and Rainbows.quit! }
   end
 end