Signals don't work properly when they are being disconnected during their processing
|Reported by:||Honza_Kral||Owned by:||Honza_Kral|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Description (last modified by gwilson)
This happens because disconnect() method does del self.receivers[index] while self.receivers are being iterated over in _live_receivers().
The attached patch has tests and a fix, the tests fail for me without the fix, passes after the fix is applied.
Change History (7)
Changed 5 years ago by Honza_Kral
comment:1 Changed 5 years ago by Honza_Kral
- milestone set to 1.1
- Needs documentation unset
- Needs tests unset
- Owner changed from nobody to Honza_Kral
- Patch needs improvement unset