diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-05 17:06:20 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-06 07:17:19 +0000 |
commit | 6bde32081338ce8075854f4c47ce8ca5347df919 (patch) | |
tree | 71759032be458838eb33f7951172e8572aec4b6d /lib/rainbows/coolio_thread_pool | |
parent | d6e4975937a9590f48dc39b1a4aefa9d62f34616 (diff) | |
download | rainbows-6bde32081338ce8075854f4c47ce8ca5347df919.tar.gz |
Code organization is hard :<
Diffstat (limited to 'lib/rainbows/coolio_thread_pool')
-rw-r--r-- | lib/rainbows/coolio_thread_pool/watcher.rb | 6 |
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 |