don't offer initiator his own candidates

This commit is contained in:
Daniel Gultsch 2015-05-18 03:17:14 +02:00
parent 34545aa96f
commit fbc43a8d38

View file

@ -399,8 +399,10 @@ public class JingleConnection implements Downloadable {
private List<Element> getCandidatesAsElements() { private List<Element> getCandidatesAsElements() {
List<Element> elements = new ArrayList<>(); List<Element> elements = new ArrayList<>();
for (JingleCandidate c : this.candidates) { for (JingleCandidate c : this.candidates) {
if (c.isOurs()) {
elements.add(c.toElement()); elements.add(c.toElement());
} }
}
return elements; return elements;
} }