[geary/mjog/741-inbox-getting-closed: 91/91] 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: 91/91] Geary.ClientService: Set as unreachable on connectivity check error
- Date: Fri, 24 Apr 2020 05:31:04 +0000 (UTC)
commit 97d34b2d4b7437314c585815d2ec95fa09ec2c9b
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 a9bab628..c69d0f53 100644
--- a/src/engine/api/geary-client-service.vala
+++ b/src/engine/api/geary-client-service.vala
@@ -456,6 +456,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));
}
}
@@ -466,6 +469,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]