Update messenger_mailserver_cycle.go

This commit is contained in:
RichΛrd 2023-01-19 07:04:18 -04:00
parent f0cd807763
commit ea46779e98
1 changed files with 2 additions and 1 deletions

View File

@ -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)