diff options
Diffstat (limited to 'libsylph/pop.c')
-rw-r--r-- | libsylph/pop.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libsylph/pop.c b/libsylph/pop.c index c5b86b2e..aa41b53c 100644 --- a/libsylph/pop.c +++ b/libsylph/pop.c @@ -844,7 +844,10 @@ static gint pop3_session_recv_msg(Session *session, const gchar *msg) } break; case POP3_LOGOUT: - pop3_session->state = POP3_DONE; + if (val == PS_SUCCESS) + pop3_session->state = POP3_DONE; + else + pop3_session->state = POP3_ERROR; session_disconnect(session); break; case POP3_ERROR: |