From 54b512a7e084f56c86a9f703e90ce5df1eeea2f7 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 8 Mar 2008 04:47:43 +0000 Subject: [PATCH] Delete .fastresume on resume of a non-seeding torrent. --- deluge/core/torrent.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index aa63b8810..de66c6548 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -352,9 +352,13 @@ class Torrent: if self.handle.is_seed(): self.state = "Seeding" + # Only delete the .fastresume file if we're still downloading stuff + self.delete_fastresume() else: self.state = "Downloading" - + + return True + def move_storage(self, dest): """Move a torrent's storage location""" try: