mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
check tasks for completion
This commit is contained in:
parent
68c6537bcb
commit
cf2ae9d7e8
2 changed files with 3 additions and 3 deletions
|
@ -224,7 +224,7 @@ namespace Bit.Core.Services
|
|||
{
|
||||
return Task.FromResult(DecryptedCipherCache);
|
||||
}
|
||||
if(_getAllDecryptedTask != null)
|
||||
if(_getAllDecryptedTask != null && !_getAllDecryptedTask.IsCompleted && !_getAllDecryptedTask.IsFaulted)
|
||||
{
|
||||
return _getAllDecryptedTask;
|
||||
}
|
||||
|
|
|
@ -121,7 +121,7 @@ namespace Bit.Core.Services
|
|||
{
|
||||
return Task.FromResult(_encKey);
|
||||
}
|
||||
if(_getEncKeysTask != null)
|
||||
if(_getEncKeysTask != null && !_getEncKeysTask.IsCompleted && !_getEncKeysTask.IsFaulted)
|
||||
{
|
||||
return _getEncKeysTask;
|
||||
}
|
||||
|
@ -224,7 +224,7 @@ namespace Bit.Core.Services
|
|||
{
|
||||
return Task.FromResult(_orgKeys);
|
||||
}
|
||||
if(_getOrgKeysTask != null)
|
||||
if(_getOrgKeysTask != null && !_getOrgKeysTask.IsCompleted && !_getOrgKeysTask.IsFaulted)
|
||||
{
|
||||
return _getOrgKeysTask;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue