From: Lars Magne Ingebrigtsen Date: Tue, 3 Jan 2012 21:21:24 +0000 (+0100) Subject: (nnimap-finish-retrieve-group-infos): Check the connection status in the correct... X-Git-Url: https://cgit.sxemacs.org/?a=commitdiff_plain;h=9464304af4fd41b930f7249db2ac013764153fe0;p=gnus (nnimap-finish-retrieve-group-infos): Check the connection status in the correct buffer. If a different IMAP server closed the connection, we would check the connection status before we had changed the defvoo variables around, so we would check the status on the previous server's connection. Reported by Didier Verna. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fdf8b5a5e..33cb4dca6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-01-03 Lars Magne Ingebrigtsen + + * nnimap.el (nnimap-finish-retrieve-group-infos): Check the connection + status in the correct buffer. + 2012-01-03 Leo (tiny change) * gnus-topic.el (gnus-topic-goto-next-group): Don't move point around diff --git a/lisp/nnimap.el b/lisp/nnimap.el index 429b7453c..32319f7b5 100644 --- a/lisp/nnimap.el +++ b/lisp/nnimap.el @@ -1273,11 +1273,11 @@ textual parts.") (deffoo nnimap-finish-retrieve-group-infos (server infos sequences) (when (and sequences + (nnimap-possibly-change-group nil server) ;; Check that the process is still alive. (get-buffer-process (nnimap-buffer)) (memq (process-status (get-buffer-process (nnimap-buffer))) - '(open run)) - (nnimap-possibly-change-group nil server)) + '(open run))) (with-current-buffer (nnimap-buffer) ;; Wait for the final data to trickle in. (when (nnimap-wait-for-response (if (eq (cadar sequences) 'qresync)