repo: refactor startup sync loop

This commit is contained in:
Hylke Bons 2013-01-05 14:15:22 +01:00
parent d277f89ffb
commit 34b0334418

View file

@ -203,11 +203,11 @@ namespace SparkleLib {
// Sync up everything that changed
// since we've been offline
new Thread (() => {
if (!this.is_syncing && (HasLocalChanges || HasUnsyncedChanges)) {
SyncUpBase ();
while (HasLocalChanges && !this.is_syncing)
if (!this.is_syncing && (HasUnsyncedChanges || HasLocalChanges)) {
do {
SyncUpBase ();
} while (!this.is_syncing && HasLocalChanges);
}
this.remote_timer.Start ();