1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-25 05:22:06 +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) { if (!smWasEnabledAtLeastOnce) {
throw new StreamManagementException.StreamManagementNotEnabledException(); throw new StreamManagementException.StreamManagementNotEnabledException();
} }
// Remove the listener after max. 12 hours // Remove the listener after max. 3 hours
final int removeAfterSeconds = Math.min(getMaxSmResumptionTime(), 12 * 60 * 60); final int removeAfterSeconds = Math.min(getMaxSmResumptionTime(), 3 * 60 * 60);
schedule(new Runnable() { schedule(new Runnable() {
@Override @Override
public void run() { public void run() {