Opened 5 years ago

Closed 5 years ago

#3317 closed bug (Fixed)

dictionary changed size during iteration

Reported by: JohnDoee Owned by:
Priority: minor Milestone: 2.0.4
Component: Core Version: 2.0.0
Keywords: Cc:


In my own plugin I create a server using reactor.listenTCP and in the disable function, I run "stopListening" to clean up.

When the plugin is loaded and I shut down Deluge, I get the "dictionary changed size during iteration" exception. The problem stems from this line:

If I change self.components.values() to list(self.components.values()) it all goes away.

Change History (2)

comment:1 by Calum, 5 years ago

Milestone: needs verified2.0.4

comment:2 by Calum, 5 years ago

Resolution: Fixed
Status: newclosed

Fixed in [ed4bc5fa17ec5]

Note: See TracTickets for help on using tickets.