From 5a0c45bc6a63238f42b26c7add392b815e88a962 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Mon, 23 May 2011 01:18:10 +0100 Subject: [PATCH] repo: fix listener connecting --- SparkleLib/Hg/SparkleRepoHg.cs | 1 - SparkleLib/SparkleRepoBase.cs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/SparkleLib/Hg/SparkleRepoHg.cs b/SparkleLib/Hg/SparkleRepoHg.cs index e78bb6fa..c23ba796 100644 --- a/SparkleLib/Hg/SparkleRepoHg.cs +++ b/SparkleLib/Hg/SparkleRepoHg.cs @@ -88,7 +88,6 @@ namespace SparkleLib { if (hg.ExitCode == 0) { return true; - //FetchRebaseAndPush ();TODO } else { return false; } diff --git a/SparkleLib/SparkleRepoBase.cs b/SparkleLib/SparkleRepoBase.cs index 73cf1da5..890c1291 100644 --- a/SparkleLib/SparkleRepoBase.cs +++ b/SparkleLib/SparkleRepoBase.cs @@ -113,7 +113,7 @@ namespace SparkleLib { SyncDownBase (); } - if (this.is_polling && !this.listener.IsConnecting) + if (this.is_polling && !this.listener.IsConnecting && !this.listener.IsConnected) this.listener.Connect (); // In the unlikely case that we haven't synced up our