Skip to content

Commit e74ca69

Browse files
author
Elad Zelingher
committed
Call TrySetException instead of SetException
since OnConnectionError can be called many times.
1 parent e476bb9 commit e74ca69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net45/WampSharp/WAMP2/V2/Client/WampPendingRequestBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void Error(TMessage details, string error, TMessage[] arguments, TMessage
5353

5454
public void SetException(Exception exception)
5555
{
56-
mTaskCompletionSource.SetException(exception);
56+
mTaskCompletionSource.TrySetException(exception);
5757
}
5858
}
5959
}

0 commit comments

Comments
 (0)