Fix progress delay when there was an error

This commit is contained in:
Hylke Bons 2012-03-01 17:48:05 +00:00
parent 72649641f8
commit 977c225e9f
3 changed files with 2 additions and 2 deletions

View file

@ -150,7 +150,6 @@ namespace SparkleLib.Git {
} }
base.OnProgressChanged (100); base.OnProgressChanged (100);
Thread.Sleep (1000);
InstallConfiguration (); InstallConfiguration ();
InstallExcludeRules (); InstallExcludeRules ();

View file

@ -149,6 +149,7 @@ namespace SparkleLib {
this.thread = new Thread (new ThreadStart (delegate { this.thread = new Thread (new ThreadStart (delegate {
if (Fetch ()) { if (Fetch ()) {
Thread.Sleep (500);
SparkleHelpers.DebugInfo ("Fetcher", "Finished"); SparkleHelpers.DebugInfo ("Fetcher", "Finished");
EnableHostKeyCheckingForHost (host); EnableHostKeyCheckingForHost (host);
@ -158,6 +159,7 @@ namespace SparkleLib {
Finished (Warnings); Finished (Warnings);
} else { } else {
Thread.Sleep (500);
SparkleHelpers.DebugInfo ("Fetcher", "Failed"); SparkleHelpers.DebugInfo ("Fetcher", "Failed");
EnableHostKeyCheckingForHost (host); EnableHostKeyCheckingForHost (host);

View file

@ -374,7 +374,6 @@ namespace SparkleShare {
}; };
Program.Controller.FolderFetchError += delegate (string remote_url) { Program.Controller.FolderFetchError += delegate (string remote_url) {
Thread.Sleep (1000);
PreviousUrl = remote_url; PreviousUrl = remote_url;
if (ChangePageEvent != null) if (ChangePageEvent != null)