avatars: don't download further if there's no internet connection

This commit is contained in:
wimh 2011-07-23 21:04:32 +01:00 committed by Hylke Bons
parent 1ed107e6e9
commit 1c283c2d9c

View file

@ -944,8 +944,12 @@ namespace SparkleShare {
SparkleHelpers.DebugInfo ("Controller", "Fetched gravatar for " + email);
}
} catch (WebException) {
} catch (WebException e) {
SparkleHelpers.DebugInfo ("Controller", "Failed fetching gravatar for " + email);
// Stop downloading further avatars if we have no internet access
if (e.Status == WebExceptionStatus.Timeout)
break;
}
}
}