From 48ebe24f8e986c174e8e933404b81a7d6a3beb3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?rich=CE=9Brd?= Date: Fri, 9 Aug 2024 10:04:45 -0400 Subject: [PATCH] fix_: tmp remove subscription to mailserver available signal to avoid leak (#5684) --- protocol/messenger_mailserver.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/protocol/messenger_mailserver.go b/protocol/messenger_mailserver.go index 4b09875a8..238dab637 100644 --- a/protocol/messenger_mailserver.go +++ b/protocol/messenger_mailserver.go @@ -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: }