Commit 15e709cd authored by Michael Gratton's avatar Michael Gratton 🤞

Treat transient DNS errors as simply indicating being offline

parent e490905b
Pipeline #59342 failed with stages
in 9 minutes and 44 seconds
......@@ -124,6 +124,11 @@ public class Geary.ConnectivityManager : BaseObject {
debug("DBus error checking %s reachable, treating as reachable: %s",
endpoint, err.message);
is_reachable = true;
} catch (GLib.ResolverError.TEMPORARY_FAILURE err) {
// Host name could not be resolved since name servers
// could not be reached, so treat as being offline.
debug("Transient error checking %s reachable, treating offline: %s",
endpoint, err.message);
} catch (GLib.Error err) {
this.monitor.network_available) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment