From be327e4f5a4db4f0de93bd6934c56af5ab6bdefe Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 15 May 2018 23:40:30 -0400 Subject: [PATCH] logout async --- jslib | 2 +- src/background/main.background.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jslib b/jslib index 7112911cb8..799c90af17 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 7112911cb89bcf9bf9b9de32cb05ec2d3f78e3fc +Subproject commit 799c90af1702c681874cb8fce8f8adcf1049d0c8 diff --git a/src/background/main.background.ts b/src/background/main.background.ts index bd28f33b09..b00f61c869 100644 --- a/src/background/main.background.ts +++ b/src/background/main.background.ts @@ -122,7 +122,7 @@ export default class MainBackground { this.tokenService = new TokenService(this.storageService); this.appIdService = new AppIdService(this.storageService); this.apiService = new ApiService(this.tokenService, this.platformUtilsService, - (expired: boolean) => this.logout(expired)); + async (expired: boolean) => await this.logout(expired)); this.environmentService = new EnvironmentService(this.apiService, this.storageService); this.userService = new UserService(this.tokenService, this.storageService); this.settingsService = new SettingsService(this.userService, this.storageService); @@ -139,7 +139,7 @@ export default class MainBackground { }); this.syncService = new SyncService(this.userService, this.apiService, this.settingsService, this.folderService, this.cipherService, this.cryptoService, this.collectionService, - this.storageService, this.messagingService, (expired: boolean) => this.logout(expired)); + this.storageService, this.messagingService, async (expired: boolean) => await this.logout(expired)); this.passwordGenerationService = new PasswordGenerationService(this.cryptoService, this.storageService); this.totpService = new TotpService(this.storageService, cryptoFunctionService); this.autofillService = new AutofillService(this.cipherService, this.tokenService,