Fix progress delay when there was an error
This commit is contained in:
parent
edc9619254
commit
57ade79173
|
@ -150,7 +150,6 @@ namespace SparkleLib.Git {
|
|||
}
|
||||
|
||||
base.OnProgressChanged (100);
|
||||
Thread.Sleep (1000);
|
||||
|
||||
InstallConfiguration ();
|
||||
InstallExcludeRules ();
|
||||
|
|
|
@ -149,6 +149,7 @@ namespace SparkleLib {
|
|||
|
||||
this.thread = new Thread (new ThreadStart (delegate {
|
||||
if (Fetch ()) {
|
||||
Thread.Sleep (500);
|
||||
SparkleHelpers.DebugInfo ("Fetcher", "Finished");
|
||||
|
||||
EnableHostKeyCheckingForHost (host);
|
||||
|
@ -158,6 +159,7 @@ namespace SparkleLib {
|
|||
Finished (Warnings);
|
||||
|
||||
} else {
|
||||
Thread.Sleep (500);
|
||||
SparkleHelpers.DebugInfo ("Fetcher", "Failed");
|
||||
|
||||
EnableHostKeyCheckingForHost (host);
|
||||
|
|
|
@ -374,7 +374,6 @@ namespace SparkleShare {
|
|||
};
|
||||
|
||||
Program.Controller.FolderFetchError += delegate (string remote_url) {
|
||||
Thread.Sleep (1000);
|
||||
PreviousUrl = remote_url;
|
||||
|
||||
if (ChangePageEvent != null)
|
||||
|
|
Loading…
Reference in a new issue