mirror of
https://github.com/status-im/status-go.git
synced 2025-01-11 07:07:24 +00:00
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…
x
Reference in New Issue
Block a user