Fix progress delay when there was an error
This commit is contained in:
parent
72649641f8
commit
977c225e9f
|
@ -150,7 +150,6 @@ namespace SparkleLib.Git {
|
||||||
}
|
}
|
||||||
|
|
||||||
base.OnProgressChanged (100);
|
base.OnProgressChanged (100);
|
||||||
Thread.Sleep (1000);
|
|
||||||
|
|
||||||
InstallConfiguration ();
|
InstallConfiguration ();
|
||||||
InstallExcludeRules ();
|
InstallExcludeRules ();
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue