mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: add IceCandidates only after webEndpoint is available
parent
bd262257f0
commit
a922b95d95
|
@ -214,12 +214,12 @@ public abstract class MediaEndpoint {
|
||||||
internalEndpointInitialization(endpointLatch);
|
internalEndpointInitialization(endpointLatch);
|
||||||
} else {
|
} else {
|
||||||
endpointLatch.countDown();
|
endpointLatch.countDown();
|
||||||
}
|
|
||||||
if (this.isWeb()) {
|
if (this.isWeb()) {
|
||||||
while (!candidates.isEmpty()) {
|
while (!candidates.isEmpty()) {
|
||||||
internalAddIceCandidate(candidates.removeFirst());
|
internalAddIceCandidate(candidates.removeFirst());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return old;
|
return old;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -291,6 +291,11 @@ public abstract class MediaEndpoint {
|
||||||
}
|
}
|
||||||
|
|
||||||
endpointLatch.countDown();
|
endpointLatch.countDown();
|
||||||
|
|
||||||
|
while (!candidates.isEmpty()) {
|
||||||
|
internalAddIceCandidate(candidates.removeFirst());
|
||||||
|
}
|
||||||
|
|
||||||
log.trace("EP {}: Created a new WebRtcEndpoint", endpointName);
|
log.trace("EP {}: Created a new WebRtcEndpoint", endpointName);
|
||||||
endpointSubscription = registerElemErrListener(webEndpoint);
|
endpointSubscription = registerElemErrListener(webEndpoint);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue