Fix PingManager, use 'nextPingIn' to schedule

pings, instead of 'pingInterval'. Fixes SMACK-575.
This commit is contained in:
Florian Schmaus 2014-06-12 16:12:04 +02:00
parent 3d926a034c
commit 273c2d7da9
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ public class PingManager extends Manager {
int nextPingIn = pingInterval - delta;
LOGGER.fine("Scheduling ServerPingTask in " + nextPingIn + " seconds (pingInterval="
+ pingInterval + ", delta=" + delta + ")");
nextAutomaticPing = schedule(pingServerRunnable, pingInterval, TimeUnit.SECONDS);
nextAutomaticPing = schedule(pingServerRunnable, nextPingIn, TimeUnit.SECONDS);
}
}