fix_: empty account created
This commit is contained in:
parent
bcaf8ebbe6
commit
e10e6baf02
|
@ -2508,17 +2508,22 @@ func (b *GethStatusBackend) Logout() error {
|
||||||
defer b.mu.Unlock()
|
defer b.mu.Unlock()
|
||||||
|
|
||||||
b.log.Debug("logging out")
|
b.log.Debug("logging out")
|
||||||
|
|
||||||
|
b.AccountManager().Logout()
|
||||||
|
b.account = nil
|
||||||
|
b.log.Debug("account manager logout done")
|
||||||
|
|
||||||
err := b.cleanupServices()
|
err := b.cleanupServices()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
b.log.Debug("cleanup services done")
|
||||||
|
|
||||||
err = b.closeDBs()
|
err = b.closeDBs()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
b.log.Debug("close dbs done")
|
||||||
b.AccountManager().Logout()
|
|
||||||
b.account = nil
|
|
||||||
|
|
||||||
if b.statusNode != nil {
|
if b.statusNode != nil {
|
||||||
if err := b.statusNode.Stop(); err != nil {
|
if err := b.statusNode.Stop(); err != nil {
|
||||||
|
@ -2526,6 +2531,7 @@ func (b *GethStatusBackend) Logout() error {
|
||||||
}
|
}
|
||||||
b.statusNode = nil
|
b.statusNode = nil
|
||||||
}
|
}
|
||||||
|
b.log.Debug("stop node done")
|
||||||
|
|
||||||
if !b.LocalPairingStateManager.IsPairing() {
|
if !b.LocalPairingStateManager.IsPairing() {
|
||||||
signal.SendNodeStopped()
|
signal.SendNodeStopped()
|
||||||
|
|
Loading…
Reference in New Issue