Merge pull request #1850 from Bilb/add-start-in-tray-setting

do not poll for opengroup when offline
pull/1854/head
Audric Ackermann 4 years ago committed by GitHub
commit a3df4192d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -188,6 +188,11 @@ export class OpenGroupServerPoller {
if (this.isPolling) {
return false;
}
if (!window.getGlobalOnlineStatus()) {
window?.log?.info('OpenGroupServerPoller: offline');
return false;
}
return true;
}
@ -203,6 +208,10 @@ export class OpenGroupServerPoller {
if (this.isPreviewPolling) {
return false;
}
if (!window.getGlobalOnlineStatus()) {
window?.log?.info('OpenGroupServerPoller: offline');
return false;
}
return true;
}
@ -218,6 +227,10 @@ export class OpenGroupServerPoller {
if (this.isMemberCountPolling) {
return false;
}
if (!window.getGlobalOnlineStatus()) {
window?.log?.info('OpenGroupServerPoller: offline');
return false;
}
return true;
}

Loading…
Cancel
Save