From 3dc705a7a9f1e11dfb180ff4f5c48098e9e74ab7 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 1 Nov 2017 20:33:05 -0400 Subject: [PATCH] only sync if not updated --- src/App/App.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/App/App.cs b/src/App/App.cs index 731ce905e..59469aab0 100644 --- a/src/App/App.cs +++ b/src/App/App.cs @@ -103,8 +103,11 @@ namespace Bit.App if(string.IsNullOrWhiteSpace(_uri)) { - Helpers.PerformUpdateTasks(_settings, _appInfoService, _databaseService, _syncService); - await Task.Run(() => FullSyncAsync()).ConfigureAwait(false); + var updated = Helpers.PerformUpdateTasks(_settings, _appInfoService, _databaseService, _syncService); + if(!updated) + { + await Task.Run(() => FullSyncAsync()).ConfigureAwait(false); + } } if((DateTime.UtcNow - _appSettingsService.LastCacheClear).TotalDays >= 1)