[geary/wip/imap-disconnects-ignored: 3/5] Ensure bad IMAP response are treated as other errors



commit 9a996e212a187983e02da653bc801c420eb63300
Author: Michael Gratton <mike vee net>
Date:   Sat Aug 10 11:31:33 2019 +1000

    Ensure bad IMAP response are treated as other errors
    
    Send a receive error event to the FSM when a bad response is received so
    that the connection is closed, in the same way as for other receive
    errors.

 src/engine/imap/transport/imap-client-session.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/engine/imap/transport/imap-client-session.vala 
b/src/engine/imap/transport/imap-client-session.vala
index dc0ba071..86929243 100644
--- a/src/engine/imap/transport/imap-client-session.vala
+++ b/src/engine/imap/transport/imap-client-session.vala
@@ -1916,6 +1916,7 @@ public class Geary.Imap.ClientSession : BaseObject {
 
     private void on_received_bad_response(RootParameters root, ImapError err) {
         debug("[%s] Received bad response %s: %s", to_string(), root.to_string(), err.message);
+        fsm.issue(Event.RECV_ERROR, null, null, err);
     }
 
     private void on_received_eos(ClientConnection cx) {


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