1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-29 17:52:06 +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; int nextPingIn = pingInterval - delta;
LOGGER.fine("Scheduling ServerPingTask in " + nextPingIn + " seconds (pingInterval=" LOGGER.fine("Scheduling ServerPingTask in " + nextPingIn + " seconds (pingInterval="
+ pingInterval + ", delta=" + delta + ")"); + pingInterval + ", delta=" + delta + ")");
nextAutomaticPing = schedule(pingServerRunnable, pingInterval, TimeUnit.SECONDS); nextAutomaticPing = schedule(pingServerRunnable, nextPingIn, TimeUnit.SECONDS);
} }
} }