Don't wait for a response when we haven't requested anything.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 20 Sep 2010 15:50:32 +0000 (17:50 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 20 Sep 2010 15:50:32 +0000 (17:50 +0200)
From David Edmondson  <dme@dme.org>

lisp/ChangeLog
lisp/nnimap.el

index 9501859..025de67 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-20  David Edmondson  <dme@dme.org>  (tiny change)
+
+       * nnimap.el (nnimap-request-set-mark): Don't wait for a response when
+       we haven't requested anything.
+
 2010-09-20  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * nnimap.el (nnimap-fetch-inbox): Use "[]" as the parameter instead of
index fddb406..2de09b1 100644 (file)
@@ -530,7 +530,8 @@ textual parts.")
                                (mapconcat #'identity flags " ")))))))
        ;; Wait for the last command to complete to avoid later
        ;; syncronisation problems with the stream.
-       (nnimap-wait-for-response sequence)))))
+       (when sequence
+         (nnimap-wait-for-response sequence))))))
 
 (deffoo nnimap-request-accept-article (group &optional server last)
   (when (nnimap-possibly-change-group nil server)