]> git.eshelyaron.com Git - emacs.git/commitdiff
(nntp-possibly-change-group): Allow for unexpected
authorRichard M. Stallman <rms@gnu.org>
Tue, 13 Oct 1998 03:24:50 +0000 (03:24 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 13 Oct 1998 03:24:50 +0000 (03:24 +0000)
responses to GROUP command, since this may be called from a timer
with quit inhibited.

lisp/gnus/nntp.el

index 4067d566eb65cd6400ebb5be8cf7885479ceda1d..4a82b036dd7e7d553a9cb7fc6e700432ccc8069a 100644 (file)
@@ -871,7 +871,9 @@ This function is supposed to be called from `nntp-server-opened-hook'."
          (set-buffer (process-buffer (car entry)))
          (erase-buffer)
          (nntp-send-string (car entry) (concat "GROUP " group))
-         (nntp-wait-for-string "^2.*\n")
+         ;; allow for unexpected responses, since this can be called
+         ;; from a timer with quit inhibited
+         (nntp-wait-for-string "^[245].*\n")
          (setcar (cddr entry) group)
          (erase-buffer))))))