]> git.eshelyaron.com Git - emacs.git/commitdiff
(smtpmail-via-smtp): Make sure we don't send QUIT twice.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 22 Jun 2011 09:13:50 +0000 (11:13 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 22 Jun 2011 09:13:50 +0000 (11:13 +0200)
lisp/ChangeLog
lisp/mail/smtpmail.el

index bfb630c5e3dd750154a24482a3f23e172596824c..e5c2e2ad6288bdb4144bba15609262d5b25b214c 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-22  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * mail/smtpmail.el (smtpmail-via-smtp): Make sure we don't send
+       QUIT twice.
+
 2011-06-22  Martin Rudalics  <rudalics@gmx.at>
 
        * window.el (display-buffer-default-specifiers)
index 7385eab497794ca284ae9041cfd077cd2d2d0534..58a517ba83651dfcc56100c405f3f3e24ec9e424 100644 (file)
@@ -741,6 +741,7 @@ The list is in preference order.")
                (smtpmail-send-command process "QUIT")
                (smtpmail-read-response process)
                (delete-process process)
+               (setq process nil)
                (throw 'done
                       (smtpmail-via-smtp recipient smtpmail-text-buffer t)))
               (t
@@ -768,6 +769,7 @@ The list is in preference order.")
                  (smtpmail-send-command process "QUIT")
                  (smtpmail-read-response process)
                  (delete-process process)
+                 (setq process nil)
                  (throw 'done
                         (smtpmail-via-smtp recipient smtpmail-text-buffer t)))
                 (t