We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aab06b commit c7f9e84Copy full SHA for c7f9e84
src/net45/WampSharp/WAMP2/V2/Client/Session/WampSessionClient.cs
@@ -137,7 +137,7 @@ private void RaiseConnectionBroken()
137
138
if (goodbyeMessage != null)
139
{
140
- mCloseTask?.SetResult(goodbyeMessage);
+ mCloseTask?.TrySetResult(goodbyeMessage);
141
}
142
143
SetTasksErrorsIfNeeded(new WampConnectionBrokenException(mCloseEventArgs));
@@ -247,4 +247,4 @@ protected virtual void OnConnectionError(WampConnectionErrorEventArgs e)
247
ConnectionError?.Invoke(this, e);
248
249
250
-}
+}
0 commit comments