2002-09-03 Simon Josefsson <jas@extundo.com>
+ * nntp.el (nntp-wait-for-string): Dont infloop if process died.
+
* gnus-agent.el (gnus-agent-batch): Add doc.
2002-09-03 Josh Huber <huber@alum.wpi.edu>
"Wait until string arrives in the buffer."
(let ((buf (current-buffer)))
(goto-char (point-min))
- (while (not (re-search-forward regexp nil t))
+ (while (and (nntp-find-connection nntp-server-buffer)
+ (not (re-search-forward regexp nil t)))
(accept-process-output (nntp-find-connection nntp-server-buffer))
(set-buffer buf)
(goto-char (point-min)))))