From aadf9f6338b6ceca33b0ec20e29091c38170c370 Mon Sep 17 00:00:00 2001 From: Brendan Cully Date: Tue, 27 Jan 2009 12:58:15 -0800 Subject: [PATCH] Move socket close into imap_logout from imap_logout_all --- imap/imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap/imap.c b/imap/imap.c index c7b451bd..f7a207a9 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -190,7 +190,6 @@ void imap_logout_all (void) mutt_message (_("Closing connection to %s..."), conn->account.host); imap_logout ((IMAP_DATA**) (void*) &conn->data); mutt_clear_error (); - mutt_socket_close (conn); mutt_socket_free (conn); } @@ -831,6 +830,7 @@ void imap_logout (IMAP_DATA** idata) while (imap_cmd_step (*idata) == IMAP_CMD_CONTINUE) ; + mutt_socket_close ((*idata)->conn); imap_free_idata (idata); } -- 2.40.0