1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-24 21:12:05 +01:00

Remove stanza ID ack'ed listeneres after max 3 instead of 12 hours

This commit is contained in:
Florian Schmaus 2018-02-23 18:53:47 +01:00
parent c90607d7db
commit 42c2e4d077

View file

@ -1736,8 +1736,8 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
if (!smWasEnabledAtLeastOnce) {
throw new StreamManagementException.StreamManagementNotEnabledException();
}
// Remove the listener after max. 12 hours
final int removeAfterSeconds = Math.min(getMaxSmResumptionTime(), 12 * 60 * 60);
// Remove the listener after max. 3 hours
final int removeAfterSeconds = Math.min(getMaxSmResumptionTime(), 3 * 60 * 60);
schedule(new Runnable() {
@Override
public void run() {