# HG changeset patch # User Richard M. Stallman # Date 1195127552 0 # Node ID e1aef858fc08fb0375bc2411838d16ffcf925e70 # Parent d9c1915a8cd137dcea536ac324a427a222accbdb (url-retrieve-synchronously): Call delete-process. diff -r d9c1915a8cd1 -r e1aef858fc08 lisp/url/url.el --- a/lisp/url/url.el Thu Nov 15 09:53:02 2007 +0000 +++ b/lisp/url/url.el Thu Nov 15 11:52:32 2007 +0000 @@ -240,7 +240,9 @@ ;; XXX: The callback must always be called. Any ;; exception is a bug that should be fixed, not worked ;; around. - (setq retrieval-done t)) + (progn ;; Call delete-process so we run any sentinel now. + (delete-process proc) + (setq retrieval-done t))) ;; We used to use `sit-for' here, but in some cases it wouldn't ;; work because apparently pending keyboard input would always ;; interrupt it before it got a chance to handle process input.