mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: gatherCandidates() returns immediately, no need for async
parent
aba3311076
commit
142348fcef
|
@ -649,19 +649,10 @@ public abstract class MediaEndpoint {
|
|||
throw new OpenViduException(Code.MEDIA_WEBRTC_ENDPOINT_ERROR_CODE,
|
||||
"Can't start gathering ICE candidates on null WebRtcEndpoint (ep: " + endpointName + ")");
|
||||
}
|
||||
webEndpoint.gatherCandidates(new Continuation<Void>() {
|
||||
@Override
|
||||
public void onSuccess(Void result) throws Exception {
|
||||
webEndpoint.gatherCandidates();
|
||||
log.trace("EP {}: Internal endpoint started to gather candidates", endpointName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable cause) throws Exception {
|
||||
log.warn("EP {}: Internal endpoint failed to start gathering candidates", endpointName, cause);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void internalAddIceCandidate(IceCandidate candidate) throws OpenViduException {
|
||||
if (webEndpoint == null) {
|
||||
throw new OpenViduException(Code.MEDIA_WEBRTC_ENDPOINT_ERROR_CODE,
|
||||
|
|
Loading…
Reference in New Issue