fix to append when there are no torrents - micah

This commit is contained in:
Marcos Pinto 2007-07-17 05:52:09 +00:00
parent d9b1fce480
commit 6793741972

View File

@ -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)