Commit 6ca26f1d authored by Lars Magne Ingebrigtsen's avatar Lars Magne Ingebrigtsen
Browse files

(url-http-async-sentinel): Check that the buffer is still alive before

switching to it.
parent 4cacd822
2010-10-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
* url-http.el (url-http-async-sentinel): Check that the buffer is
still alive before switching to it.
2010-09-25 Julien Danjou <julien@danjou.info>
* url-cache.el (url-cache-create-filename): Ensure no-port and
......
......@@ -1244,6 +1244,7 @@ CBARGS as the arguments."
(declare (special url-callback-arguments))
;; We are performing an asynchronous connection, and a status change
;; has occurred.
(when (buffer-name (process-buffer proc))
(with-current-buffer (process-buffer proc)
(cond
(url-http-connection-opened
......@@ -1257,7 +1258,7 @@ CBARGS as the arguments."
:host (url-host (or url-http-proxy url-current-object))
:service (url-port (or url-http-proxy url-current-object))))
(car url-callback-arguments)))
(url-http-activate-callback)))))
(url-http-activate-callback))))))
;; Since Emacs 19/20 does not allow you to change the
;; `after-change-functions' hook in the midst of running them, we fake
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment