diff options
Diffstat (limited to 'src/stores/AppStore.ts')
-rw-r--r-- | src/stores/AppStore.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts index 02d616241..18b38799e 100644 --- a/src/stores/AppStore.ts +++ b/src/stores/AppStore.ts | |||
@@ -529,14 +529,14 @@ export default class AppStore extends TypedStore { | |||
529 | 529 | ||
530 | // Reactions | 530 | // Reactions |
531 | _offlineCheck() { | 531 | _offlineCheck() { |
532 | if (!this.isOnline) { | 532 | if (this.isOnline) { |
533 | this.timeOfflineStart = moment(); | ||
534 | } else { | ||
535 | const deltaTime = moment().diff(this.timeOfflineStart); | 533 | const deltaTime = moment().diff(this.timeOfflineStart); |
536 | 534 | ||
537 | if (deltaTime > ms('30m')) { | 535 | if (deltaTime > ms('30m')) { |
538 | this.actions.service.reloadAll(); | 536 | this.actions.service.reloadAll(); |
539 | } | 537 | } |
538 | } else { | ||
539 | this.timeOfflineStart = moment(); | ||
540 | } | 540 | } |
541 | } | 541 | } |
542 | 542 | ||