Sync up with Pteroductyl Gnus 0.62
[elisp/gnus.git-] / lisp / nntp.el
index c0e80a6..731923d 100644 (file)
@@ -944,7 +944,9 @@ password contained in '~/.nntp-authinfo'."
       ;; we only care about insertions at eob
       (when (and (eq 0 len) (eq (point-max) end))
        (save-match-data
-         (nntp-async-trigger (get-buffer-process (current-buffer)))))
+         (let ((proc (get-buffer-process (current-buffer))))
+           (when proc
+             (nntp-async-trigger proc)))))
     ;; any throw from after-change-functions will leave it
     ;; set to nil.  so we reset it here, if necessary.
     (when quit-flag