[geary/wip/789924-network-transition: 10/15] Misc ClientSessionManager fixes.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/789924-network-transition: 10/15] Misc ClientSessionManager fixes.
- Date: Sun, 12 Nov 2017 11:11:29 +0000 (UTC)
commit acb339f2abf739b92972babe372f101e28bc6ea2
Author: Michael James Gratton <mike vee net>
Date: Fri Nov 10 00:26:35 2017 +1100
Misc ClientSessionManager fixes.
.../transport/imap-client-session-manager.vala | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/engine/imap/transport/imap-client-session-manager.vala
b/src/engine/imap/transport/imap-client-session-manager.vala
index 02f84a4..f75647f 100644
--- a/src/engine/imap/transport/imap-client-session-manager.vala
+++ b/src/engine/imap/transport/imap-client-session-manager.vala
@@ -134,6 +134,9 @@ public class Geary.Imap.ClientSessionManager : BaseObject {
this.is_open = false;
this.is_ready = false;
+ this.pool_start.reset();
+ this.pool_retry.reset();
+
this.endpoint.connectivity.notify["is-reachable"].disconnect(on_connectivity_change);
// to avoid locking down the sessions table while scheduling disconnects, make a copy
@@ -225,10 +228,10 @@ public class Geary.Imap.ClientSessionManager : BaseObject {
private async ClientSession create_new_authorized_session(Cancellable? cancellable) throws Error {
if (authentication_failed)
throw new ImapError.UNAUTHENTICATED("Invalid ClientSessionManager credentials");
-
+
if (untrusted_host)
- throw new ImapError.UNAUTHENTICATED("Untrusted host %s", endpoint.to_string());
-
+ throw new ImapError.UNAVAILABLE("Untrusted host %s", endpoint.to_string());
+
if (!this.endpoint.connectivity.is_reachable)
throw new ImapError.UNAVAILABLE("Host at %s is unreachable", endpoint.to_string());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]