Skip to content

Commit

Permalink
don't block the event log on initial startup syncs
Browse files Browse the repository at this point in the history
  • Loading branch information
hbons committed Oct 16, 2012
1 parent 2d3f351 commit faf5ff1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions SparkleLib/SparkleRepoBase.cs
Expand Up @@ -195,14 +195,17 @@ public void Initialize ()

// Sync up everything that changed
// since we've been offline
if (!this.is_syncing && (HasLocalChanges || HasUnsyncedChanges)) {
SyncUpBase ();

while (HasLocalChanges)
new Thread (() => {
if (!this.is_syncing && (HasLocalChanges || HasUnsyncedChanges)) {
SyncUpBase ();
}
this.remote_timer.Start ();
while (HasLocalChanges && !this.is_syncing)
SyncUpBase ();
}
this.remote_timer.Start ();
}).Start ();
}


Expand Down

0 comments on commit faf5ff1

Please sign in to comment.