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