mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
GODT-1657: More stable sync, with some tests
This commit is contained in:
@ -18,6 +18,9 @@ func (bridge *Bridge) watchForUpdates() error {
|
||||
go func() {
|
||||
for {
|
||||
select {
|
||||
case <-bridge.stopCh:
|
||||
return
|
||||
|
||||
case <-bridge.updateCheckCh:
|
||||
case <-ticker.C:
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user