no need to schedule locking if already locked

This commit is contained in:
Kyle Spearrin 2019-05-16 12:33:48 -04:00
parent cf41c5e090
commit 3f8ab1bfe7

View file

@ -181,6 +181,15 @@ namespace Bit.App
private async Task HandleLockingAsync() private async Task HandleLockingAsync()
{ {
if(await _lockService.IsLockedAsync())
{
return;
}
var authed = await _userService.IsAuthenticatedAsync();
if(!authed)
{
return;
}
var lockOption = _platformUtilsService.LockTimeout(); var lockOption = _platformUtilsService.LockTimeout();
if(lockOption == null) if(lockOption == null)
{ {