Skip to content

Commit

Permalink
Ignore errors from rTorrent.
Browse files Browse the repository at this point in the history
  • Loading branch information
stassats committed Dec 7, 2010
1 parent db1f40f commit b5d9d8e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions rtorrent-controller.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,14 @@
"torrent")
(let ((namestring (remove #\\ (namestring filename))))
(format t "Loading ~a~%" namestring)
(load-torrent namestring :start (equal "v" (pathname-name filename))))
(disable-last-torrent)
(handler-case (delete-file filename)
(file-error ()))))
(handler-case
(progn
(load-torrent namestring :start (equal "v" (pathname-name filename)))
(disable-last-torrent)
(handler-case (delete-file filename)
(file-error ())))
(error (e)
(warn "An error ~a has occured while communicating with rTorrent." e))))))

(defun inotify-loop (&optional (directory (user-homedir-pathname)))
(inotify:with-inotify (inot `((,directory ,(logior inotify:in-create
Expand Down

0 comments on commit b5d9d8e

Please sign in to comment.