Merge pull request #2689 from nspcc-dev/stateroot-shutdown-panic
stateroot: fix panic on shutdown
This commit is contained in:
commit
bd8d46e11a
1 changed files with 3 additions and 1 deletions
|
@ -74,7 +74,9 @@ func (s *service) Shutdown() {
|
|||
s.log.Info("stopping state validation service")
|
||||
close(s.stopCh)
|
||||
<-s.done
|
||||
s.wallet.Close()
|
||||
if s.wallet != nil {
|
||||
s.wallet.Close()
|
||||
}
|
||||
}
|
||||
|
||||
func (s *service) signAndSend(r *state.MPTRoot) error {
|
||||
|
|
Loading…
Reference in a new issue