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…
Reference in New Issue