From 3f8ab1bfe798ec9e6dec701394e3065651846ef6 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 16 May 2019 12:33:48 -0400 Subject: [PATCH] no need to schedule locking if already locked --- src/App/App.xaml.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/App/App.xaml.cs b/src/App/App.xaml.cs index 3827a617e..2d2d3280a 100644 --- a/src/App/App.xaml.cs +++ b/src/App/App.xaml.cs @@ -181,6 +181,15 @@ namespace Bit.App private async Task HandleLockingAsync() { + if(await _lockService.IsLockedAsync()) + { + return; + } + var authed = await _userService.IsAuthenticatedAsync(); + if(!authed) + { + return; + } var lockOption = _platformUtilsService.LockTimeout(); if(lockOption == null) {