1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 00:02:06 +01:00

Request SM ack when re-sending after stream resumption

Fixes SMACK-667.
This commit is contained in:
Florian Schmaus 2015-05-19 14:21:52 +02:00
parent d97b115170
commit 576980097e

View file

@ -1117,6 +1117,12 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
} }
smResumedSyncPoint.reportSuccess(); smResumedSyncPoint.reportSuccess();
smEnabledSyncPoint.reportSuccess(); smEnabledSyncPoint.reportSuccess();
// If there where stanzas resent, then request a SM ack for them.
// Writer's sendStreamElement() won't do it automatically based on
// predicates.
if (!stanzasToResend.isEmpty()) {
requestSmAcknowledgementInternal();
}
LOGGER.fine("Stream Management (XEP-198): Stream resumed"); LOGGER.fine("Stream Management (XEP-198): Stream resumed");
break; break;
case AckAnswer.ELEMENT: case AckAnswer.ELEMENT: