don't offer initiator his own candidates
This commit is contained in:
parent
34545aa96f
commit
fbc43a8d38
|
@ -213,7 +213,7 @@ public class JingleConnection implements Downloadable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPrimaryCandidateFound(boolean success,
|
public void onPrimaryCandidateFound(boolean success,
|
||||||
final JingleCandidate candidate) {
|
final JingleCandidate candidate) {
|
||||||
if (success) {
|
if (success) {
|
||||||
final JingleSocks5Transport socksConnection = new JingleSocks5Transport(
|
final JingleSocks5Transport socksConnection = new JingleSocks5Transport(
|
||||||
JingleConnection.this, candidate);
|
JingleConnection.this, candidate);
|
||||||
|
@ -399,7 +399,9 @@ 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) {
|
||||||
elements.add(c.toElement());
|
if (c.isOurs()) {
|
||||||
|
elements.add(c.toElement());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return elements;
|
return elements;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue