statusicon: start on a new thread when forcing a retry
This commit is contained in:
parent
1c36101212
commit
d193f52af5
|
@ -668,7 +668,9 @@ namespace SparkleLib.Git {
|
|||
|
||||
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;
|
||||
|
||||
} else if (line.StartsWith ("error: Disk space exceeded")) {
|
||||
|
|
|
@ -336,7 +336,9 @@ namespace SparkleShare {
|
|||
ProgressSpeedDown += rep.ProgressSpeed;
|
||||
}
|
||||
|
||||
ProgressPercentage = percentage / repo_count;
|
||||
if (repo_count > 0)
|
||||
ProgressPercentage = percentage / repo_count;
|
||||
|
||||
UpdateState ();
|
||||
};
|
||||
|
||||
|
|
|
@ -209,7 +209,7 @@ namespace SparkleShare {
|
|||
{
|
||||
foreach (SparkleRepoBase repo in Program.Controller.Repositories) {
|
||||
if (repo.Name.Equals (subfolder))
|
||||
repo.ForceRetry ();
|
||||
new Thread (() => repo.ForceRetry ()).Start ();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue