1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-09 18:29:45 +02:00

Make XMPPConnection.schedule() protected

This method was never intended to be part of the public API. It's also
critical that the given Runnables complete within a reasonable
time frame so that they don't block following ones.
This commit is contained in:
Florian Schmaus 2014-05-21 21:43:16 +02:00
parent 1302dbe9cb
commit a19181ce04
3 changed files with 8 additions and 2 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 = connection().schedule(pingServerRunnable, pingInterval, TimeUnit.SECONDS);
nextAutomaticPing = schedule(pingServerRunnable, pingInterval, TimeUnit.SECONDS);
}
}