Treat ConnectivityManager errors as failure rather than unreachable

This lets the errors get reported to the user.
This commit is contained in:
Michael Gratton 2019-02-11 14:29:38 +11:00 committed by Michael James Gratton
parent 68f31e0e59
commit fb6e6383ea

View file

@ -439,10 +439,9 @@ public abstract class Geary.ClientService : BaseObject {
private void on_connectivity_error(Error error) {
if (this.is_running) {
this.current_status = CONNECTION_FAILED;
this.became_reachable_timer.reset();
this.became_unreachable_timer.reset();
became_unreachable();
notify_connection_failed(new ErrorContext(error));
}
}