diff options
Diffstat (limited to 'lib/rainbows/coolio/heartbeat.rb')
-rw-r--r-- | lib/rainbows/coolio/heartbeat.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/coolio/heartbeat.rb b/lib/rainbows/coolio/heartbeat.rb index d1f4747..4506b84 100644 --- a/lib/rainbows/coolio/heartbeat.rb +++ b/lib/rainbows/coolio/heartbeat.rb @@ -11,7 +11,7 @@ class Rainbows::Coolio::Heartbeat < Coolio::TimerWatcher G = Rainbows::G def on_timer - if (ot = G.kato) >= 0 + if (ot = Rainbows.keepalive_timeout) >= 0 ot = Time.now - ot KATO.delete_if { |client, time| time < ot and client.timeout? } end |