parent
b2a184ea78
commit
b0d103d494
|
@ -926,14 +926,13 @@ func (o *Manager) checkConnectionStatus(chainID walletCommon.ChainID) {
|
||||||
|
|
||||||
// If no chain in statuses, add it
|
// If no chain in statuses, add it
|
||||||
statusVal, ok := o.statuses.Load(chainID.String())
|
statusVal, ok := o.statuses.Load(chainID.String())
|
||||||
status := statusVal.(*connection.Status)
|
|
||||||
if !ok {
|
if !ok {
|
||||||
status = connection.NewStatus()
|
status := connection.NewStatus()
|
||||||
status.SetIsConnected(false)
|
status.SetIsConnected(false)
|
||||||
o.statuses.Store(chainID.String(), status)
|
o.statuses.Store(chainID.String(), status)
|
||||||
o.updateStatusNotifier()
|
o.updateStatusNotifier()
|
||||||
} else {
|
} else {
|
||||||
status.SetIsConnected(false)
|
statusVal.(*connection.Status).SetIsConnected(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue