Skip to content

Commit 88bb816

Browse files
author
Elad Zelingher
committed
Trying to fix #199
1 parent c41445f commit 88bb816

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/net45/WampSharp/WAMP2/V2/Api/Rx/WampClientSubject.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,16 @@ public void Dispose()
9898
(mDisposableTask.Exception == null))
9999
{
100100
IAsyncDisposable result = mDisposableTask.Result;
101-
result.DisposeAsync();
101+
result.DisposeAsync().ContinueWith(x =>
102+
{
103+
if (x.Exception != null)
104+
{
105+
// Done in order to avoid .NET 4.0 UnhandledException
106+
// Nobody sees this exception anyway. I hope that we
107+
// soon get a version of Reactive Extensions which is more
108+
// suited for remote pub/sub, and allows to return AsyncDispoables.
109+
}
110+
});
102111
}
103112
}
104113
}

0 commit comments

Comments
 (0)