mirror of
https://github.com/bitwarden/android.git
synced 2024-12-26 02:48:29 +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);
|
return Task.FromResult(DecryptedCipherCache);
|
||||||
}
|
}
|
||||||
if(_getAllDecryptedTask != null)
|
if(_getAllDecryptedTask != null && !_getAllDecryptedTask.IsCompleted && !_getAllDecryptedTask.IsFaulted)
|
||||||
{
|
{
|
||||||
return _getAllDecryptedTask;
|
return _getAllDecryptedTask;
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,7 +121,7 @@ namespace Bit.Core.Services
|
||||||
{
|
{
|
||||||
return Task.FromResult(_encKey);
|
return Task.FromResult(_encKey);
|
||||||
}
|
}
|
||||||
if(_getEncKeysTask != null)
|
if(_getEncKeysTask != null && !_getEncKeysTask.IsCompleted && !_getEncKeysTask.IsFaulted)
|
||||||
{
|
{
|
||||||
return _getEncKeysTask;
|
return _getEncKeysTask;
|
||||||
}
|
}
|
||||||
|
@ -224,7 +224,7 @@ namespace Bit.Core.Services
|
||||||
{
|
{
|
||||||
return Task.FromResult(_orgKeys);
|
return Task.FromResult(_orgKeys);
|
||||||
}
|
}
|
||||||
if(_getOrgKeysTask != null)
|
if(_getOrgKeysTask != null && !_getOrgKeysTask.IsCompleted && !_getOrgKeysTask.IsFaulted)
|
||||||
{
|
{
|
||||||
return _getOrgKeysTask;
|
return _getOrgKeysTask;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue