embarrassing bug fixed in queue_bottom, that caused torrents to vanish...

This commit is contained in:
Alon Zakai 2007-06-15 08:41:32 +00:00
parent 2982ae4b8c
commit 8390e3977e
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ class Manager:
def queue_bottom(self, unique_ID, enforce_queue=True):
curr_index = self.get_queue_index(unique_ID)
if curr_index < (len(self.state.queue) - 1):
self.state.queue.remove(curr_index)
self.state.queue.remove(unique_ID)
self.state.queue.append(unique_ID)
if enforce_queue:
self.apply_queue()