about summary refs log tree commit homepage
path: root/lib/rainbows/coolio/heartbeat.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/coolio/heartbeat.rb')
-rw-r--r--lib/rainbows/coolio/heartbeat.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rainbows/coolio/heartbeat.rb b/lib/rainbows/coolio/heartbeat.rb
index 4506b84..4657155 100644
--- a/lib/rainbows/coolio/heartbeat.rb
+++ b/lib/rainbows/coolio/heartbeat.rb
@@ -8,13 +8,12 @@
 class Rainbows::Coolio::Heartbeat < Coolio::TimerWatcher
   KATO = Rainbows::Coolio::KATO
   CONN = Rainbows::Coolio::CONN
-  G = Rainbows::G
 
   def on_timer
     if (ot = Rainbows.keepalive_timeout) >= 0
       ot = Time.now - ot
       KATO.delete_if { |client, time| time < ot and client.timeout? }
     end
-    exit if (! G.tick && CONN.size <= 0)
+    exit if (! Rainbows.tick && CONN.size <= 0)
   end
 end