[repo] don't fetch when there's no network connection
This commit is contained in:
parent
ace62fd454
commit
d908e25ac8
|
@ -157,6 +157,9 @@ namespace SparkleLib {
|
|||
|
||||
process.Exited += delegate {
|
||||
|
||||
if (process.ExitCode != 0)
|
||||
return;
|
||||
|
||||
string remote_hash = process.StandardOutput.ReadToEnd ();
|
||||
|
||||
if (!remote_hash.StartsWith (CurrentHash)) {
|
||||
|
|
Loading…
Reference in a new issue