From 40cfb9876d314f2f7f91fade18968ea0e042641e Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 11 Aug 2017 14:24:44 -0400 Subject: [PATCH] properly background unregister call --- src/App/App.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/App.cs b/src/App/App.cs index 93c3dd651..64f6de8d6 100644 --- a/src/App/App.cs +++ b/src/App/App.cs @@ -215,13 +215,13 @@ namespace Bit.App } } - private async void Logout(string logoutMessage) + private void Logout(string logoutMessage) { _authService.LogOut(); var deviceApiRepository = Resolver.Resolve(); var appIdService = Resolver.Resolve(); - await Task.Run(() => deviceApiRepository.PutClearTokenAsync(appIdService.AppId)).ConfigureAwait(false); + Task.Run(async () => await deviceApiRepository.PutClearTokenAsync(appIdService.AppId)); _googleAnalyticsService.TrackAppEvent("LoggedOut");