From 335414ed5357ddb21acfd75293a1b3acbd9c4fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6llner?= Date: Sat, 22 Feb 2020 14:17:44 +0100 Subject: [PATCH] exception handling fix --- Capnp.Net.Runtime/Rpc/RpcEngine.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Capnp.Net.Runtime/Rpc/RpcEngine.cs b/Capnp.Net.Runtime/Rpc/RpcEngine.cs index 87460f8..d38e7aa 100644 --- a/Capnp.Net.Runtime/Rpc/RpcEngine.cs +++ b/Capnp.Net.Runtime/Rpc/RpcEngine.cs @@ -921,9 +921,9 @@ namespace Capnp.Rpc void ReleaseResultCaps(PendingAnswer answer) { - try + answer.Chain(async t => { - answer.Chain(async t => + try { var aorcq = await t; var results = aorcq.Answer; @@ -935,11 +935,11 @@ namespace Capnp.Rpc cap?.Release(); } } - }); - } - catch - { - } + } + catch + { + } + }); } void ProcessFinish(Finish.READER finish)