mirror of
https://github.com/status-im/status-go.git
synced 2025-01-29 16:06:47 +00:00
fix_: tmp remove subscription to mailserver available signal to avoid leak (#5684)
This commit is contained in:
parent
772b5b6d35
commit
48ebe24f8e
@ -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:
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user