From c8881f3482bf188a585b9a577ac8078c739d0d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6llner?= Date: Fri, 23 Aug 2019 22:10:23 +0200 Subject: [PATCH] Troubleshooting ReleaseOnCancelClient, 3rd attempt --- Capnp.Net.Runtime.Tests/TcpRpcInterop.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Capnp.Net.Runtime.Tests/TcpRpcInterop.cs b/Capnp.Net.Runtime.Tests/TcpRpcInterop.cs index 4abb6a6..0d283f3 100644 --- a/Capnp.Net.Runtime.Tests/TcpRpcInterop.cs +++ b/Capnp.Net.Runtime.Tests/TcpRpcInterop.cs @@ -338,7 +338,7 @@ namespace Capnp.Net.Runtime.Tests { // Scenario 2: Cancellation happened before or while computing the answer. } - catch (ObjectDisposedException) + catch (AggregateException ex) when (ex.InnerException is ObjectDisposedException) { // Scenario 3: Cancellation happened after computing the answer, and after client-side completion. }