* Check for updates and start the background update check, if configured.
()
| 124 | * Check for updates and start the background update check, if configured. |
| 125 | */ |
| 126 | async start() { |
| 127 | if (this.autoCheckEnabled) { |
| 128 | console.log("starting updater"); |
| 129 | this.autoCheckInterval = setInterval(() => { |
| 130 | fireAndForget(() => this.checkForUpdates(false)); |
| 131 | }, 600000); // intervals are unreliable when an app is suspended so we will check every 10 mins if the interval has passed. |
| 132 | await this.checkForUpdates(false); |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | /** |
| 137 | * Stop the background update check, if configured. |
no test coverage detected