swifter
swifter copied to clipboard
Fixed async array mutation on stop
The sockets array looped through in the stop method can be modified asynchronously by the start method. This leads to a very rare crash (I wasn't able to reproduce it in a test case consistently, but it happened from time to time). It's most likely even recorded by Mozilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1608793
Didn't experience this crash ever since applying this patch locally, would appreciate a review/merge.
@Vkt0r could you review this PR maybe?