avatars: don't download further if there's no internet connection
This commit is contained in:
parent
49ce54f15c
commit
48730e8411
|
@ -944,8 +944,12 @@ namespace SparkleShare {
|
||||||
SparkleHelpers.DebugInfo ("Controller", "Fetched gravatar for " + email);
|
SparkleHelpers.DebugInfo ("Controller", "Fetched gravatar for " + email);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (WebException) {
|
} catch (WebException e) {
|
||||||
SparkleHelpers.DebugInfo ("Controller", "Failed fetching gravatar for " + email);
|
SparkleHelpers.DebugInfo ("Controller", "Failed fetching gravatar for " + email);
|
||||||
|
|
||||||
|
// Stop downloading further avatars if we have no internet access
|
||||||
|
if (e.Status == WebExceptionStatus.Timeout)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue