mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 12:04:51 +00:00
Fix queue order on state load.
This commit is contained in:
parent
67dfd74bdc
commit
8604de25d8
1 changed files with 7 additions and 0 deletions
|
@ -301,6 +301,13 @@ class Manager:
|
|||
except:
|
||||
pass
|
||||
|
||||
# Make sure the Queue is in the correct order and remove any
|
||||
# entries that were not added to the session due to error.
|
||||
self.state.queue = state.queue[:]
|
||||
for uid in state.queue:
|
||||
if uid not in self.state.torrents:
|
||||
self.state.queue.remove(uid)
|
||||
|
||||
# Sync with the core: tell core about torrents, and get
|
||||
# unique_IDs
|
||||
self.sync()
|
||||
|
|
Loading…
Add table
Reference in a new issue