mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-06 16:44:29 +00:00
fix to append when there are no torrents - micah
This commit is contained in:
parent
d9b1fce480
commit
6793741972
@ -803,7 +803,10 @@ class Manager:
|
||||
torrent_state = self.get_core_torrent_state(self.state.queue[index])
|
||||
if torrent_state['progress'] == 1.0:
|
||||
break
|
||||
self.state.queue.insert(index, unique_ID)
|
||||
if torrent_state['progress'] == 1.0:
|
||||
self.state.queue.insert(index, unique_ID)
|
||||
else:
|
||||
self.state.queue.append(unique_ID)
|
||||
|
||||
else:
|
||||
self.state.queue.append(unique_ID)
|
||||
|
Loading…
x
Reference in New Issue
Block a user