diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-04-07 10:56:23 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-04-07 10:56:23 +0300 |
| commit | 02fe464c0fc173404771e0e61c5ac0db2a1813d3 (patch) | |
| tree | 644a088e83e0c5ecad5278c755db89d1e65bede7 /Software/Visual_Studio/Tango.WebRTC | |
| parent | 302f706666622cade696eeb024763821536660c4 (diff) | |
| download | Tango-02fe464c0fc173404771e0e61c5ac0db2a1813d3.tar.gz Tango-02fe464c0fc173404771e0e61c5ac0db2a1813d3.zip | |
Several bug fixes.
Diffstat (limited to 'Software/Visual_Studio/Tango.WebRTC')
| -rw-r--r-- | Software/Visual_Studio/Tango.WebRTC/WebRtcClient.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Software/Visual_Studio/Tango.WebRTC/WebRtcClient.cs b/Software/Visual_Studio/Tango.WebRTC/WebRtcClient.cs index cb4cf174a..19f82b063 100644 --- a/Software/Visual_Studio/Tango.WebRTC/WebRtcClient.cs +++ b/Software/Visual_Studio/Tango.WebRTC/WebRtcClient.cs @@ -181,6 +181,7 @@ namespace Tango.WebRTC if (!_conductor.InitializePeerConnection()) { completion.SetException(new ApplicationException("Error initializing peer connection.")); + return; } _conductor.CreateDataChannel(DataChannelName); @@ -201,21 +202,17 @@ namespace Tango.WebRTC catch (Exception ex) { completion.SetException(ex); + return; } IsInitialized = true; completion.SetResult(true); - //Stopwatch watch = new Stopwatch(); - //watch.Start(); - while (!_isDisposed) { - //watch.Restart(); _conductor.ProcessMessages(1000); Thread.Sleep(10); - //Thread.Sleep(Math.Max(10, (int)watch.ElapsedMilliseconds)); } IsInitialized = false; |
