fix fastresume

This commit is contained in:
Marcos Pinto 2007-10-16 01:18:08 +00:00
parent 891a9955ad
commit 9d75b5f306
1 changed files with 8 additions and 0 deletions

View File

@ -902,6 +902,14 @@ class Manager:
self.state.queue.append(torrent)
else:
self.state.queue.append(torrent)
#remove fastresume for non-seed
torrent_state = self.get_core_torrent_state(unique_ID, False)
if not torrent_state['is_seed']:
try:
os.remove(self.unique_IDs[unique_ID].filename + ".fastresume")
except:
pass
# run through queue, remove those that no longer exists
to_delete = []