mirror of
https://github.com/bitwarden/mobile.git
synced 2024-12-17 15:27:43 +01:00
check tasks for completion
This commit is contained in:
parent
68c6537bcb
commit
cf2ae9d7e8
@ -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 New Issue
Block a user