diff --git a/src/RTCSession/RTCMediaHandler.js b/src/RTCSession/RTCMediaHandler.js index 30415fe54..a26576c14 100644 --- a/src/RTCSession/RTCMediaHandler.js +++ b/src/RTCSession/RTCMediaHandler.js @@ -181,7 +181,9 @@ RTCMediaHandler.prototype = { if (e.candidate) { self.logger.debug('ICE candidate received: '+ e.candidate.candidate); } else if (self.onIceCompleted !== undefined) { - self.onIceCompleted(); + setTimeout(function() { + self.onIceCompleted(); + }); } };