Skip to content

Commit

Permalink
- RTCMediaHandler: fire onIceCompleted() on next tick to avoid event …
Browse files Browse the repository at this point in the history
…race conditions in FF33 (#257)
  • Loading branch information
ibc committed Oct 24, 2014
1 parent fd07245 commit ca7702e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/RTCSession/RTCMediaHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
};

Expand Down

0 comments on commit ca7702e

Please sign in to comment.