[#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:
parent
7ef141aab7
commit
6f1c21da31
1 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue