Skip to content

Commit

Permalink
Trying to fix #199
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Zelingher committed Jul 7, 2017
1 parent c41445f commit 88bb816
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/net45/WampSharp/WAMP2/V2/Api/Rx/WampClientSubject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,16 @@ public void Dispose()
(mDisposableTask.Exception == null))
{
IAsyncDisposable result = mDisposableTask.Result;
result.DisposeAsync();
result.DisposeAsync().ContinueWith(x =>
{
if (x.Exception != null)
{
// Done in order to avoid .NET 4.0 UnhandledException
// Nobody sees this exception anyway. I hope that we
// soon get a version of Reactive Extensions which is more
// suited for remote pub/sub, and allows to return AsyncDispoables.
}
});
}
}
}
Expand Down

0 comments on commit 88bb816

Please sign in to comment.