mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 08:58:38 +00:00
fix fastresume oops
This commit is contained in:
parent
664877a7e6
commit
d07d25e189
1 changed files with 11 additions and 15 deletions
14
src/core.py
14
src/core.py
|
@ -859,7 +859,11 @@ class Manager:
|
||||||
# Apply per torrent prefs after torrent added to core
|
# Apply per torrent prefs after torrent added to core
|
||||||
self.apply_prefs_per_torrent(unique_ID)
|
self.apply_prefs_per_torrent(unique_ID)
|
||||||
#remove fastresume for non-seed
|
#remove fastresume for non-seed
|
||||||
torrent_state = self.get_core_torrent_state(unique_ID, False)
|
try:
|
||||||
|
torrent_state = self.get_core_torrent_state(unique_ID)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
if not torrent_state['is_seed']:
|
if not torrent_state['is_seed']:
|
||||||
try:
|
try:
|
||||||
os.remove(self.unique_IDs[unique_ID].filename + ".fastresume")
|
os.remove(self.unique_IDs[unique_ID].filename + ".fastresume")
|
||||||
|
@ -902,14 +906,6 @@ class Manager:
|
||||||
self.state.queue.append(torrent)
|
self.state.queue.append(torrent)
|
||||||
else:
|
else:
|
||||||
self.state.queue.append(torrent)
|
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
|
# run through queue, remove those that no longer exists
|
||||||
to_delete = []
|
to_delete = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue