From 17498f84521b979d54a5aa72e64c7a65fa6ba5be Mon Sep 17 00:00:00 2001 From: Doug Freed Date: Thu, 26 Nov 2015 12:22:13 +0400 Subject: Ignore lag while syncing, no matter how long --- lib/ASM/Event.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ASM/Event.pm') diff --git a/lib/ASM/Event.pm b/lib/ASM/Event.pm index 6e5dc94..b1f9db6 100644 --- a/lib/ASM/Event.pm +++ b/lib/ASM/Event.pm @@ -159,7 +159,7 @@ sub on_pong if (($pongcount % 3) == 0) { #easiest way to do something roughly every 90 seconds $conn->sl('STATS p'); } - if ((time - $::starttime) < 240 ) { + if ( @::syncqueue ) { return; #we don't worry about lag if we've just started up and are still syncing etc. } if (($lag > 2) && ($lag < 5)) { -- cgit v1.2.3