From 3169b460f02bdb20865d92e3a6ae051ae8885a34 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Mon, 15 Oct 2007 13:22:27 +0000 Subject: [PATCH] remove fastresume after adding torrent that's not a seed --- src/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core.py b/src/core.py index 591bf46fb..bae4df607 100644 --- a/src/core.py +++ b/src/core.py @@ -861,6 +861,10 @@ class Manager: # Apply per torrent prefs after torrent added to core self.apply_prefs_per_torrent(unique_ID) + #remove fastresume for non-seed + torrent_state = self.get_core_torrent_state(unique_ID, False) + if not torrent_state['is_seed']: + os.remove(self.unique_IDs[unique_ID].filename + ".fastresume") # Remove torrents from core, unique_IDs and queue to_delete = []