Skip to content
Permalink
Browse files

- RTCMediaHandler: fire onIceCompleted() on next tick to avoid event …

…race conditions in FF33 (#257)
  • Loading branch information
ibc committed Oct 24, 2014
1 parent fd07245 commit ca7702e286f8960526c7319d8658c901dbf3c904
Showing with 3 additions and 1 deletion.
  1. +3 −1 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();
});
}
};

0 comments on commit ca7702e

Please sign in to comment.
You can’t perform that action at this time.