(url-http-find-free-connection): Handle url-open-stream returning nil.
This commit is contained in:
@@ -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)))))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user