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

View File

@ -1117,6 +1117,12 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
}
smResumedSyncPoint.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");
break;
case AckAnswer.ELEMENT: