From 06ede455b7acd1c126e7de7c36f66f949b9d7f21 Mon Sep 17 00:00:00 2001 From: wimh Date: Sat, 23 Jul 2011 21:41:56 +0100 Subject: [PATCH] fix bug in CheckForChanges --- SparkleLib/SparkleRepoBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SparkleLib/SparkleRepoBase.cs b/SparkleLib/SparkleRepoBase.cs index f5373aa5..8421722f 100644 --- a/SparkleLib/SparkleRepoBase.cs +++ b/SparkleLib/SparkleRepoBase.cs @@ -276,14 +276,14 @@ namespace SparkleLib { { lock (this.change_lock) { if (this.has_changed) { - Console.WriteLine ("checking..."); if (this.sizebuffer.Count >= 4) this.sizebuffer.RemoveAt (0); DirectoryInfo dir_info = new DirectoryInfo (LocalPath); this.sizebuffer.Add (CalculateFolderSize (dir_info)); - if (this.sizebuffer [0].Equals (this.sizebuffer [1]) && + if (this.sizebuffer.Count >= 4 && + this.sizebuffer [0].Equals (this.sizebuffer [1]) && this.sizebuffer [1].Equals (this.sizebuffer [2]) && this.sizebuffer [2].Equals (this.sizebuffer [3])) {