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



commit e8081f066eab612a87b829913c38864ad5baaaf3
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 07ed573f..62955e32 100644
--- a/src/engine/imap/transport/imap-client-session.vala
+++ b/src/engine/imap/transport/imap-client-session.vala
@@ -1912,6 +1912,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]