Make sure queue order is preserved when restarting daemon.

This commit is contained in:
Chase Sterling 2012-11-26 17:19:09 -05:00
parent 4579886bb5
commit d48d3c9c2f
1 changed files with 1 additions and 1 deletions

View File

@ -685,7 +685,7 @@ class TorrentManager(component.Component):
# Reorder the state.torrents list to add torrents in the correct queue
# order.
state.torrents.sort(key=operator.attrgetter("queue"))
state.torrents.sort(key=operator.attrgetter("queue"), reverse=self.config["queue_new_to_top"])
resume_data = self.load_resume_data_file()