Make sure queue order is preserved when restarting daemon.

This commit is contained in:
Chase Sterling 2012-11-21 02:14:12 -05:00
parent 7d88cb1850
commit 666bb09513

View File

@ -641,7 +641,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()