#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:

Description

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: https://github.com/deluge-torrent/deluge/blob/develop/deluge/component.py#L451

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

Change History (2)

comment:1 Changed 23 months ago by Cas

  • Milestone changed from needs verified to 2.0.4

comment:2 Changed 23 months ago by Cas

  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in [ed4bc5fa17ec5]

Note: See TracTickets for help on using tickets.