mirror of
https://github.com/status-im/status-go.git
synced 2025-02-22 03:38:27 +00:00
Update messenger_mailserver_cycle.go
This commit is contained in:
parent
f0cd807763
commit
ea46779e98
@ -482,7 +482,8 @@ func (m *Messenger) handleMailserverCycleEvent(connectedPeers []ConnectedPeer) e
|
||||
m.mailPeersMutex.Unlock()
|
||||
|
||||
// Only evaluate connected peers once a mailserver has been set
|
||||
// otherwise
|
||||
// otherwise, we would attempt to retrieve history and end up with a mailserver
|
||||
// not available error
|
||||
if m.mailserverCycle.activeMailserver != nil {
|
||||
for _, connectedPeer := range connectedPeers {
|
||||
id, err := m.mailserverAddressToID(connectedPeer.UniqueID)
|
||||
|
Loading…
x
Reference in New Issue
Block a user