+2012-02-14 Lars Ingebrigtsen <larsi@gnus.org>
+
+ * url-queue.el (url-queue-kill-job): Refactored out code.
+ (url-queue-remove-jobs-from-host): Use it to kill jobs that are in
+ flight.
+
2012-02-14 Teodor Zlatanov <tzz@lifelogs.com>
* url-future.el: Minor doc update.
host)
(push job jobs)))
(dolist (job jobs)
+ (url-queue-kill-job job)
(setq url-queue (delq job url-queue)))))
(defun url-queue-start-retrieve (job)
url-queue-timeout))
(push job dead-jobs)))
(dolist (job dead-jobs)
- (when (bufferp (url-queue-buffer job))
- (while (get-buffer-process (url-queue-buffer job))
- (ignore-errors
- (delete-process (get-buffer-process (url-queue-buffer job)))))
- (ignore-errors
- (kill-buffer (url-queue-buffer job))))
+ (url-queue-kill-job job)
(setq url-queue (delq job url-queue)))))
+(defun url-queue-kill-job (job)
+ (when (bufferp (url-queue-buffer job))
+ (while (get-buffer-process (url-queue-buffer job))
+ (ignore-errors
+ (delete-process (get-buffer-process (url-queue-buffer job)))))
+ (ignore-errors
+ (kill-buffer (url-queue-buffer job)))))
+
(provide 'url-queue)
;;; url-queue.el ends here