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
1 changed files with 2 additions and 2 deletions

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() {