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:
1 file changed
+1
-1
+1
-1
@@ -736,8 +736,8 @@ func initNeutrinoBackend(chainDir string) (*neutrino.ChainService, func(), error
|
||||
}
|
||||
|
||||
cleanUp := func() {
|
||||
db.Close()
|
||||
neutrinoCS.Stop()
|
||||
db.Close()
|
||||
}
|
||||
|
||||
return neutrinoCS, cleanUp, nil
|
||||
|
||||
Reference in new issue
Block a user