From be8e372e0054e17b30a8cd8dc37a21b67dd565e3 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 15 May 2018 23:40:24 -0400 Subject: [PATCH] logout async --- jslib | 2 +- src/app/services.module.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 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/app/services.module.ts b/src/app/services.module.ts index 017e2f1e09..466e4743ae 100644 --- a/src/app/services.module.ts +++ b/src/app/services.module.ts @@ -80,7 +80,7 @@ const cryptoService = new CryptoService(storageService, secureStorageService, cr const tokenService = new TokenService(storageService); const appIdService = new AppIdService(storageService); const apiService = new ApiService(tokenService, platformUtilsService, - (expired: boolean) => messagingService.send('logout', { expired: expired })); + async (expired: boolean) => messagingService.send('logout', { expired: expired })); const environmentService = new EnvironmentService(apiService, storageService); const userService = new UserService(tokenService, storageService); const settingsService = new SettingsService(userService, storageService); @@ -92,8 +92,8 @@ const collectionService = new CollectionService(cryptoService, userService, stor const lockService = new LockService(cipherService, folderService, collectionService, cryptoService, platformUtilsService, storageService, messagingService, () => { /* do nothing */ }); const syncService = new SyncService(userService, apiService, settingsService, - folderService, cipherService, cryptoService, collectionService, - storageService, messagingService, (expired: boolean) => messagingService.send('logout', { expired: expired })); + folderService, cipherService, cryptoService, collectionService, storageService, messagingService, + async (expired: boolean) => messagingService.send('logout', { expired: expired })); const passwordGenerationService = new PasswordGenerationService(cryptoService, storageService); const totpService = new TotpService(storageService, cryptoFunctionService); const containerService = new ContainerService(cryptoService, platformUtilsService);