do not push empty candidates to backlog
This commit is contained in:
parent
d52c46d582
commit
c5f801c1fe
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue