summaryrefslogtreecommitdiffstats
path: root/lib/ASM/Event.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ASM/Event.pm')
-rw-r--r--lib/ASM/Event.pm2
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)) {