[#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 <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2022-03-02 16:17:55 +03:00 committed by Alex Vanin
parent 7ef141aab7
commit 6f1c21da31

View file

@ -255,8 +255,11 @@ func (x *contextCall) processCall() bool {
// close and write response to resulting structure // close and write response to resulting structure
ok = x.close() ok = x.close()
if !ok {
return false
}
return ok return x.err == nil
} }
// initializes static cross-call parameters inherited from client. // initializes static cross-call parameters inherited from client.