()
| 345 | // Lifecycle |
| 346 | |
| 347 | public dispose(): void { |
| 348 | if (this.authService) { |
| 349 | this.authService.off("auth-state-changed", this.authStateListener) |
| 350 | this.authService.off("user-info", this.authUserInfoListener) |
| 351 | } |
| 352 | |
| 353 | if (this.settingsService) { |
| 354 | if (this.settingsService instanceof CloudSettingsService) { |
| 355 | this.settingsService.off("settings-updated", this.settingsListener) |
| 356 | } |
| 357 | |
| 358 | this.settingsService.dispose() |
| 359 | } |
| 360 | |
| 361 | if (this._retryQueue) { |
| 362 | this._retryQueue.dispose() |
| 363 | } |
| 364 | |
| 365 | this.isInitialized = false |
| 366 | } |
| 367 | |
| 368 | private ensureInitialized(): void { |
| 369 | if (!this.isInitialized) { |
no test coverage detected