[geary/wip/actually-imap-logout: 3/5] Treat LOGGED_OUT as a valid terminal FSM state



commit 66dfd9e2ebbd4f0d60e6b7db25fc0f355a98ef2b
Author: Michael Gratton <mike vee net>
Date:   Thu Feb 7 14:02:49 2019 +1100

    Treat LOGGED_OUT as a valid terminal FSM state

 src/engine/imap/transport/imap-client-session.vala | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/engine/imap/transport/imap-client-session.vala 
b/src/engine/imap/transport/imap-client-session.vala
index 3e3402f2..e13b1960 100644
--- a/src/engine/imap/transport/imap-client-session.vala
+++ b/src/engine/imap/transport/imap-client-session.vala
@@ -482,10 +482,11 @@ public class Geary.Imap.ClientSession : BaseObject {
         fsm = new Geary.State.Machine(machine_desc, mappings, on_ignored_transition);
         fsm.set_logging(false);
     }
-    
+
     ~ClientSession() {
         switch (fsm.get_state()) {
             case State.UNCONNECTED:
+            case State.LOGGED_OUT:
             case State.BROKEN:
                 // no problem-o
             break;
@@ -496,7 +497,7 @@ public class Geary.Imap.ClientSession : BaseObject {
 
         debug("DTOR: ClientSession %s", to_string());
     }
-    
+
     public MailboxSpecifier? get_current_mailbox() {
         return current_mailbox;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]