mirror of
https://github.com/status-im/status-go.git
synced 2025-02-21 19:28:29 +00:00
chore: refactor DB closure to check for errors before returning (#4808)
This commit is contained in:
parent
2445cda3e0
commit
fca6cafc44
@ -477,11 +477,11 @@ func (n *StatusNode) stop() error {
|
||||
n.downloader = nil
|
||||
|
||||
if n.db != nil {
|
||||
err := n.db.Close()
|
||||
|
||||
if err = n.db.Close(); err != nil {
|
||||
n.log.Error("Error closing the leveldb of status node", "error", err)
|
||||
return err
|
||||
}
|
||||
n.db = nil
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
n.rpcFiltersSrvc = nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user