diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/stores/AppStore.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index ea51b537a..aa6e801ff 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -14,7 +14,7 @@ import locales from '../i18n/translations'; | |||
14 | import { gaEvent } from '../lib/analytics'; | 14 | import { gaEvent } from '../lib/analytics'; |
15 | import Miner from '../lib/Miner'; | 15 | import Miner from '../lib/Miner'; |
16 | 16 | ||
17 | const { app, powerMonitor } = remote; | 17 | const { app } = remote; |
18 | const defaultLocale = DEFAULT_APP_SETTINGS.locale; | 18 | const defaultLocale = DEFAULT_APP_SETTINGS.locale; |
19 | const autoLauncher = new AutoLaunch({ | 19 | const autoLauncher = new AutoLaunch({ |
20 | name: 'Franz', | 20 | name: 'Franz', |
@@ -368,11 +368,11 @@ export default class AppStore extends Store { | |||
368 | _reactivateServices(retryCount = 0) { | 368 | _reactivateServices(retryCount = 0) { |
369 | if (!this.isOnline) { | 369 | if (!this.isOnline) { |
370 | console.debug('reactivateServices: computer is offline, trying again in 5s, retries:', retryCount); | 370 | console.debug('reactivateServices: computer is offline, trying again in 5s, retries:', retryCount); |
371 | return setTimeout(() => this._reactivateServices(retryCount + 1), 5000); | 371 | setTimeout(() => this._reactivateServices(retryCount + 1), 5000); |
372 | } else { | ||
373 | console.debug('reactivateServices: reload all services'); | ||
374 | this.actions.service.reloadAll(); | ||
372 | } | 375 | } |
373 | |||
374 | console.debug('reactivateServices: reload all services'); | ||
375 | this.actions.service.reloadAll(); | ||
376 | } | 376 | } |
377 | 377 | ||
378 | _systemDND() { | 378 | _systemDND() { |