]> git.eshelyaron.com Git - emacs.git/commitdiff
(url-retrieve-synchronously): Call delete-process.
authorRichard M. Stallman <rms@gnu.org>
Thu, 15 Nov 2007 11:52:42 +0000 (11:52 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 15 Nov 2007 11:52:42 +0000 (11:52 +0000)
lisp/url/ChangeLog
lisp/url/url.el

index 146d224435b93484372c834d2cada94f8ff92f32..7402de41aabc4c9cb172482893636d4534e46afd 100644 (file)
@@ -1,3 +1,7 @@
+2007-11-15  Richard Stallman  <rms@gnu.org>
+
+       * url.el (url-retrieve-synchronously): Call delete-process.
+
 2007-10-13  Richard Stallman  <rms@gnu.org>
 
        * url-util.el (url-basepath): Function deleted.
index 1af016ff0ba8c52125b7b547c5a56c977653c3be..98dc939af99a1e0a0dba0928400421bfab5d5aca 100644 (file)
@@ -240,7 +240,9 @@ no further processing).  URL is either a string or a parsed URL."
                ;; 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.