mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
fix to append when there are no torrents - micah
This commit is contained in:
parent
d9b1fce480
commit
6793741972
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue