aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.WebRTC
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-04-17 06:12:39 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-04-17 06:12:39 +0300
commitf41d7e0a4457c0e894f53f5c9c866b8588f67eab (patch)
tree678fa2f1c21a0d6418eeb2cc0270066dce971f32 /Software/Visual_Studio/Tango.WebRTC
parentd6b5c18d94c70679f92fd54d95de1d39f355c0b7 (diff)
downloadTango-f41d7e0a4457c0e894f53f5c9c866b8588f67eab.tar.gz
Tango-f41d7e0a4457c0e894f53f5c9c866b8588f67eab.zip
Beit Hakodesh !
Diffstat (limited to 'Software/Visual_Studio/Tango.WebRTC')
-rw-r--r--Software/Visual_Studio/Tango.WebRTC/WebRtcTransportAdapter.cs20
1 files changed, 16 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Tango.WebRTC/WebRtcTransportAdapter.cs b/Software/Visual_Studio/Tango.WebRTC/WebRtcTransportAdapter.cs
index d0bfc886d..69d9fb6ae 100644
--- a/Software/Visual_Studio/Tango.WebRTC/WebRtcTransportAdapter.cs
+++ b/Software/Visual_Studio/Tango.WebRTC/WebRtcTransportAdapter.cs
@@ -143,19 +143,31 @@ namespace Tango.WebRTC
else
{
LogManager.Log("Waiting for offer...");
- completed = true;
State = TransportComponentState.Connected;
- completionSource.SetResult(true);
+
+ if (!completed)
+ {
+ completed = true;
+ completionSource.SetResult(true);
+ }
}
}
catch (Exception ex)
{
- completionSource.SetException(ex);
+ if (!completed)
+ {
+ completed = true;
+ completionSource.SetException(ex);
+ }
}
}
else
{
- completionSource.SetResult(true);
+ if (!completed)
+ {
+ completed = true;
+ completionSource.SetResult(true);
+ }
}
});