From 2a4746f197ddc7fb0c49be0741381aa3b3065fc3 Mon Sep 17 00:00:00 2001 From: yallie Date: Fri, 6 Dec 2024 04:10:57 +0300 Subject: [PATCH] Avoid calling OnAfterCall for the second time, close #95. --- CoreRemoting/RemotingSession.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CoreRemoting/RemotingSession.cs b/CoreRemoting/RemotingSession.cs index ab5ae79..f85ffa7 100644 --- a/CoreRemoting/RemotingSession.cs +++ b/CoreRemoting/RemotingSession.cs @@ -555,7 +555,8 @@ private void ProcessRpcMessage(WireMessage request) returnValue: result); } - ((RemotingServer)_server).OnAfterCall(serverRpcContext); + if (serverRpcContext.Exception == null) + ((RemotingServer)_server).OnAfterCall(serverRpcContext); if (oneWay) return;