[#2075] node: Do not make notary requests on shutdown

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-11-22 18:22:38 +03:00 committed by fyrchik
parent b8c30b88f6
commit 0f41c09207
2 changed files with 2 additions and 1 deletions

View file

@ -161,7 +161,7 @@ func waitNotaryDeposit(c *cfg, tx util.Uint256) error {
for i := 0; i < notaryDepositRetriesAmount; i++ {
select {
case <-c.ctx.Done():
return nil
return c.ctx.Err()
default:
}