[geary/mjog/741-inbox-getting-closed] Geary.ClientService: Set as unreachable on connectivity check error
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/741-inbox-getting-closed] Geary.ClientService: Set as unreachable on connectivity check error
- Date: Sat, 11 Apr 2020 03:16:03 +0000 (UTC)
commit 743277710f9650532f3fa58d91372d7e44223c22
Author: Michael Gratton <mike vee net>
Date: Sat Apr 11 13:13:09 2020 +1000
Geary.ClientService: Set as unreachable on connectivity check error
Mark the service as unreachable if a connectivity check error occurs
since if we can't determine it is reachable, we probably can't connect
to it either.
src/engine/api/geary-client-service.vala | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/engine/api/geary-client-service.vala b/src/engine/api/geary-client-service.vala
index 0a85719e..e0430c24 100644
--- a/src/engine/api/geary-client-service.vala
+++ b/src/engine/api/geary-client-service.vala
@@ -455,6 +455,9 @@ public abstract class Geary.ClientService : BaseObject, Logging.Source {
if (this.is_running) {
this.became_reachable_timer.reset();
this.became_unreachable_timer.reset();
+ // Since there was an error determining if the service was
+ // reachable, assume it is no longer reachable.
+ became_unreachable();
notify_connection_failed(new ErrorContext(error));
}
}
@@ -465,6 +468,8 @@ public abstract class Geary.ClientService : BaseObject, Logging.Source {
this.current_status = TLS_VALIDATION_FAILED;
this.became_reachable_timer.reset();
this.became_unreachable_timer.reset();
+ // Since the host is not trusted, it should not be
+ // considered reachable.
became_unreachable();
this.account.untrusted_host(this.configuration, remote, cx);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]