* url-queue.el (url-queue-callback-function): Remove the job from
the queue so that we don't kill the current buffer, which will
then make the callback function kill a random buffer.
+2012-02-19 Lars Ingebrigtsen <larsi@gnus.org>
+
+ * url-queue.el (url-queue-callback-function): Remove the job from
+ the queue so that we don't kill the current buffer, which will
+ then make the callback function kill a random buffer.
+
2012-02-14 Lars Ingebrigtsen <larsi@gnus.org>
* url-queue.el (url-queue-kill-job): Refactored out code.
(url-queue-start-retrieve waiting))))
(defun url-queue-callback-function (status job)
+ (setq url-queue (delq job url-queue))
(when (and (eq (car status) :error)
(eq (cadr (cadr status)) 'connection-failed))
;; If we get a connection error, then flush all other jobs from
;; synchronously and totally halts Emacs.
(url-queue-remove-jobs-from-host
(plist-get (nthcdr 3 (cadr status)) :host)))
- (setq url-queue (delq job url-queue))
(url-queue-run-queue)
(apply (url-queue-callback job) (cons status (url-queue-cbargs job))))