1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-25 13:32:07 +01:00

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

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);
}
}