chainregistry: stop Neutrino before closing DB
To avoid the ChainService still attempting to access the database when it gets closed, re-order the stop order such that the Chainservice gets stopped before closing the DB.
This commit is contained in:
parent
9e67f25957
commit
9cc0ea93b2
@ -736,8 +736,8 @@ func initNeutrinoBackend(chainDir string) (*neutrino.ChainService, func(), error
|
|||||||
}
|
}
|
||||||
|
|
||||||
cleanUp := func() {
|
cleanUp := func() {
|
||||||
db.Close()
|
|
||||||
neutrinoCS.Stop()
|
neutrinoCS.Stop()
|
||||||
|
db.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
return neutrinoCS, cleanUp, nil
|
return neutrinoCS, cleanUp, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user