aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.WebRTC
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2021-04-07 10:56:23 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2021-04-07 10:56:23 +0300
commit02fe464c0fc173404771e0e61c5ac0db2a1813d3 (patch)
tree644a088e83e0c5ecad5278c755db89d1e65bede7 /Software/Visual_Studio/Tango.WebRTC
parent302f706666622cade696eeb024763821536660c4 (diff)
downloadTango-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.cs7
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;