mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +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:
|
except:
|
||||||
pass
|
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
|
# Sync with the core: tell core about torrents, and get
|
||||||
# unique_IDs
|
# unique_IDs
|
||||||
self.sync()
|
self.sync()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue