From 6f1c21da3138fb746dc3ab382a512f670b6f2cac Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 2 Mar 2022 16:17:55 +0300 Subject: [PATCH] [#158] client: Do not ignore errors in `processCall()` Some callbacks, such as `close()` -> `result(v2)` may generate new errors, so `processCall` should not ignore them. Signed-off-by: Alex Vanin --- client/common.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/common.go b/client/common.go index db713970..30cccf36 100644 --- a/client/common.go +++ b/client/common.go @@ -255,8 +255,11 @@ func (x *contextCall) processCall() bool { // close and write response to resulting structure ok = x.close() + if !ok { + return false + } - return ok + return x.err == nil } // initializes static cross-call parameters inherited from client.