mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Request SM ack when re-sending after stream resumption
Fixes SMACK-667.
This commit is contained in:
parent
d97b115170
commit
576980097e
1 changed files with 6 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue