mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
patch to fix AssertionError bug on startup
This commit is contained in:
parent
3a01d4d326
commit
abb6a680e3
1 changed files with 8 additions and 0 deletions
|
@ -643,6 +643,14 @@ class Manager:
|
|||
for unique_ID in self.unique_IDs.keys():
|
||||
if unique_ID not in self.state.queue:
|
||||
self.state.queue.append(unique_ID)
|
||||
# run through queue, remove those that no longer exists
|
||||
to_delete = []
|
||||
for queue_item in self.state.queue:
|
||||
print "queue_item", queue_item
|
||||
if queue_item not in self.unique_IDs.keys():
|
||||
to_delete.append(queue_item)
|
||||
for del_item in to_delete:
|
||||
self.state.queue.remove(del_item)
|
||||
|
||||
assert(len(self.unique_IDs) == len(self.state.torrents))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue