mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 11:45:44 +00:00
Fix queue order on state load.
This commit is contained in:
parent
67dfd74bdc
commit
8604de25d8
@ -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…
x
Reference in New Issue
Block a user