diff options
author | Joakim Verona <joakim@verona.se> | 2012-03-25 22:04:52 +0200 |
---|---|---|
committer | Joakim Verona <joakim@verona.se> | 2012-03-25 22:04:52 +0200 |
commit | 75da28a3845b9dfa4e730cfa19c14edc52cbb222 (patch) | |
tree | b04519bffcb21264cbe3ce8af13df7186548667f /lisp/url/url-queue.el | |
parent | b827329a89291ed68dd017c53976be7ce5ed3b22 (diff) | |
parent | f514f6f0e3f8bbeb5212d0337e5bda5a9a4eaeb5 (diff) | |
download | emacs-75da28a3845b9dfa4e730cfa19c14edc52cbb222.tar.gz emacs-75da28a3845b9dfa4e730cfa19c14edc52cbb222.tar.bz2 emacs-75da28a3845b9dfa4e730cfa19c14edc52cbb222.zip |
upstream
Diffstat (limited to 'lisp/url/url-queue.el')
-rw-r--r-- | lisp/url/url-queue.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/url/url-queue.el b/lisp/url/url-queue.el index 46124717fed..917c787df29 100644 --- a/lisp/url/url-queue.el +++ b/lisp/url/url-queue.el @@ -160,7 +160,8 @@ The variable `url-queue-timeout' sets a timeout." ;; Call the callback with an error message to ensure that the caller ;; is notified that the job has failed. (with-current-buffer - (if (bufferp (url-queue-buffer job)) + (if (and (bufferp (url-queue-buffer job)) + (buffer-live-p (url-queue-buffer job))) ;; Use the (partially filled) process buffer it it exists. (url-queue-buffer job) ;; If not, just create a new buffer, which will probably be |