fix_: tmp remove subscription to mailserver available signal to avoid leak (#5684)

This commit is contained in:
richΛrd 2024-08-09 10:04:45 -04:00 committed by GitHub
parent 772b5b6d35
commit 48ebe24f8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 5 deletions

View File

@ -396,16 +396,11 @@ func (m *Messenger) checkForMissingMessagesLoop() {
t := time.NewTicker(missingMessageCheckPeriod)
defer t.Stop()
mailserverAvailableSignal := m.SubscribeMailserverAvailable()
for {
select {
case <-m.quit:
return
// Wait for mailserver available, also triggered on mailserver change
case <-mailserverAvailableSignal:
case <-t.C:
}