Change summary
src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java | 7
1 file changed, 5 insertions(+), 2 deletions(-)
Detailed changes
@@ -352,8 +352,11 @@ public class JingleRtpConnection extends AbstractJingleConnection implements Web
}
if (transition(target, () -> this.initiatorRtpContentMap = contentMap)) {
respondOk(jinglePacket);
- //TODO Do not push empty set
- pendingIceCandidates.push(contentMap.contents.entrySet());
+
+ final Set<Map.Entry<String, RtpContentMap.DescriptionTransport>> candidates = contentMap.contents.entrySet();
+ if (candidates.size() > 0) {
+ pendingIceCandidates.push(candidates);
+ }
if (target == State.SESSION_INITIALIZED_PRE_APPROVED) {
Log.d(Config.LOGTAG, id.account.getJid().asBareJid() + ": automatically accepting session-initiate");
sendSessionAccept();