-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race conditions on negotiation retry.
Don't start streaming until peerConnection.iceConnectionState is 'connected'. Previously, clients would attempt start streaming whenever a description or candidate was received. There are guards in place e.g. makingOffer and otherClient.streaming and I'd still like to figure out why this race condition still persisted, but this approach caused excessive calls to Client#streamTo.
- Loading branch information
1 parent
a0423b6
commit 88de78d
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters