mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(url-http-find-free-connection): Handle url-open-stream returning nil.
This commit is contained in:
parent
431feaf6f4
commit
dfea17e083
2 changed files with 9 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2006-10-12 Magnus Henoch <mange@freemail.hu>
|
||||
|
||||
* url-http.el (url-http-find-free-connection): Handle
|
||||
url-open-stream returning nil.
|
||||
|
||||
2006-10-11 Magnus Henoch <mange@freemail.hu>
|
||||
|
||||
* url-https.el: Remove (clashes with url-http on 8+3 systems).
|
||||
|
|
|
|||
|
|
@ -123,8 +123,10 @@ request.")
|
|||
;; like authentication. But we use another buffer afterwards.
|
||||
(unwind-protect
|
||||
(let ((proc (url-open-stream host buf host port)))
|
||||
;; Drop the temp buffer link before killing the buffer.
|
||||
(set-process-buffer proc nil)
|
||||
;; url-open-stream might return nil.
|
||||
(when (processp proc)
|
||||
;; Drop the temp buffer link before killing the buffer.
|
||||
(set-process-buffer proc nil))
|
||||
proc)
|
||||
(kill-buffer buf)))))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue