Skip to content

Commit

Permalink
timeout fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arononak committed Aug 2, 2024
1 parent 2e7ec48 commit 63bd753
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions [email protected]/lib/extension_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,12 @@ export class ExtensionController {
this.observeSettings(this.settingsRepository)

try {
await new Promise((resolve) => setTimeout(resolve, 2000))
await this.refresh()
await new Promise((resolve) => setTimeout(resolve, 5000))

const settingsRepository = this.settingsRepository
this.stateRefreshInterval = setInterval(() => this._checkErrors(), 1 * 1000)
this.statusRefreshInterval = setInterval(() => this._fetchStatus(), settingsRepository.fetchRefreshTime() * 1000)
this.dataRefreshInterval = setInterval(() => this._fetchData(), settingsRepository.fetchRefreshFullUpdateTime() * 60 * 1000)

await this.refresh()
} catch (error) {
logError(error)
}
Expand Down
2 changes: 1 addition & 1 deletion [email protected]/lib/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = `3.40.0`
export const VERSION = `3.41.0`

0 comments on commit 63bd753

Please sign in to comment.