statusicon: start on a new thread when forcing a retry
This commit is contained in:
parent
8e1c79226e
commit
278a1df06d
|
@ -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")) {
|
||||||
|
|
|
@ -336,7 +336,9 @@ namespace SparkleShare {
|
||||||
ProgressSpeedDown += rep.ProgressSpeed;
|
ProgressSpeedDown += rep.ProgressSpeed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (repo_count > 0)
|
||||||
ProgressPercentage = percentage / repo_count;
|
ProgressPercentage = percentage / repo_count;
|
||||||
|
|
||||||
UpdateState ();
|
UpdateState ();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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 ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue