From 42c2e4d0777cf533e7838134b89bc291ae52260a Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Fri, 23 Feb 2018 18:53:47 +0100 Subject: [PATCH] Remove stanza ID ack'ed listeneres after max 3 instead of 12 hours --- .../java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java index afa57c24e..f196bf9b2 100644 --- a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java +++ b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java @@ -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() {