Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed async array mutation on stop #524

Open
wants to merge 1 commit into
base: stable
Choose a base branch
from

Conversation

cynicer
Copy link

@cynicer cynicer commented Jul 15, 2022

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

@cynicer
Copy link
Author

cynicer commented Aug 18, 2022

Didn't experience this crash ever since applying this patch locally, would appreciate a review/merge.

@cynicer
Copy link
Author

cynicer commented Nov 29, 2022

@Vkt0r could you review this PR maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant