From 73d56196150d9e835f2d1f7cd31c138a57523ee9 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Fri, 4 Nov 2011 16:24:04 +0000 Subject: [PATCH] repo: cover case where we're in a poll triggered syncdown and a message comes in half way through --- SparkleLib/SparkleRepoBase.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SparkleLib/SparkleRepoBase.cs b/SparkleLib/SparkleRepoBase.cs index 6fd009ba..d32548f0 100755 --- a/SparkleLib/SparkleRepoBase.cs +++ b/SparkleLib/SparkleRepoBase.cs @@ -110,6 +110,12 @@ namespace SparkleLib { if (CheckForRemoteChanges ()) SyncDownBase (); + + string message; + while ((message = this.listener.NextQueueDownMessage (identifier)) != null) { + if (!message.Equals (CurrentRevision)) + SyncDownBase (); + } } // In the unlikely case that we haven't synced up our