diff options
| author | 2015-11-26 12:22:13 +0400 | |
|---|---|---|
| committer | 2015-11-26 12:22:13 +0400 | |
| commit | 17498f84521b979d54a5aa72e64c7a65fa6ba5be (patch) | |
| tree | 0026584b91f1fc1428c54d120db995675834a429 /lib/ASM/Event.pm | |
| parent | b42684900a0f2c00fdcf88d31a142ee5b5ddd361 (diff) | |
Ignore lag while syncing, no matter how long
Diffstat (limited to 'lib/ASM/Event.pm')
| -rw-r--r-- | lib/ASM/Event.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |
