only sync if not updated

This commit is contained in:
Kyle Spearrin 2017-11-01 20:33:05 -04:00
parent 8fc8d03cc4
commit 3dc705a7a9
1 changed files with 5 additions and 2 deletions

View File

@ -103,9 +103,12 @@ namespace Bit.App
if(string.IsNullOrWhiteSpace(_uri))
{
Helpers.PerformUpdateTasks(_settings, _appInfoService, _databaseService, _syncService);
var updated = Helpers.PerformUpdateTasks(_settings, _appInfoService, _databaseService, _syncService);
if(!updated)
{
await Task.Run(() => FullSyncAsync()).ConfigureAwait(false);
}
}
if((DateTime.UtcNow - _appSettingsService.LastCacheClear).TotalDays >= 1)
{