mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
null check on SyncIfNeeded
This commit is contained in:
@@ -367,7 +367,7 @@ namespace Bit.App
|
||||
Task.Run(async () =>
|
||||
{
|
||||
var lastSync = await _syncService.GetLastSyncAsync();
|
||||
if(DateTime.UtcNow - lastSync > TimeSpan.FromMinutes(30))
|
||||
if(lastSync == null || ((DateTime.UtcNow - lastSync) > TimeSpan.FromMinutes(30)))
|
||||
{
|
||||
await _syncService.FullSyncAsync(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user