emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 8b3291d: Avoid hang in nnimap-keepalive


From: Andreas Schwab
Subject: master 8b3291d: Avoid hang in nnimap-keepalive
Date: Tue, 1 Jun 2021 09:55:08 -0400 (EDT)

branch: master
commit 8b3291d13442e88bf379d3cad1fcc5094265ded3
Author: Andreas Schwab <schwab@linux-m68k.org>
Commit: Andreas Schwab <schwab@linux-m68k.org>

    Avoid hang in nnimap-keepalive
    
    * lisp/gnus/nnimap.el (nnimap-keepalive): Make interruptable.
---
 lisp/gnus/nnimap.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index f869f58..3e2a202 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -428,8 +428,9 @@ during splitting, which may be slow."
                      (time-subtract
                       now
                       (nnimap-last-command-time nnimap-object))))
-            (ignore-errors              ;E.g. "buffer foo has no process".
-              (nnimap-send-command "NOOP"))))))))
+            (with-local-quit
+              (ignore-errors          ;E.g. "buffer foo has no process".
+                (nnimap-send-command "NOOP")))))))))
 
 (defun nnimap-open-connection (buffer)
   ;; Be backwards-compatible -- the earlier value of nnimap-stream was



reply via email to

[Prev in Thread] Current Thread [Next in Thread]