statusicon: start on a new thread when forcing a retry

This commit is contained in:
Hylke Bons 2012-11-18 15:00:34 +00:00
parent 8e1c79226e
commit 278a1df06d
3 changed files with 7 additions and 3 deletions

View file

@ -668,7 +668,9 @@ namespace SparkleLib.Git {
Error = ErrorStatus.HostIdentityChanged; Error = ErrorStatus.HostIdentityChanged;
} else if (line.StartsWith ("Permission denied")) { } else if (line.StartsWith ("Permission denied") ||
line.StartsWith ("ssh_exchange_identification: Connection closed by remote host")) {
Error = ErrorStatus.AuthenticationFailed; Error = ErrorStatus.AuthenticationFailed;
} else if (line.StartsWith ("error: Disk space exceeded")) { } else if (line.StartsWith ("error: Disk space exceeded")) {

View file

@ -336,7 +336,9 @@ namespace SparkleShare {
ProgressSpeedDown += rep.ProgressSpeed; ProgressSpeedDown += rep.ProgressSpeed;
} }
ProgressPercentage = percentage / repo_count; if (repo_count > 0)
ProgressPercentage = percentage / repo_count;
UpdateState (); UpdateState ();
}; };

View file

@ -209,7 +209,7 @@ namespace SparkleShare {
{ {
foreach (SparkleRepoBase repo in Program.Controller.Repositories) { foreach (SparkleRepoBase repo in Program.Controller.Repositories) {
if (repo.Name.Equals (subfolder)) if (repo.Name.Equals (subfolder))
repo.ForceRetry (); new Thread (() => repo.ForceRetry ()).Start ();
} }
} }