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

Ensure thread safety for client subscriptions #58

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

runeharlyk
Copy link
Collaborator

The handler onWSClose, does not lock the client_subscriptions list, meaning when a client disconnects while an event is emitted from another thread the device crashes due to a race condition.

@theelims theelims merged commit b5898d6 into theelims:main Jul 23, 2024
@runeharlyk runeharlyk deleted the event-socket-lock branch August 19, 2024 19:47
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.

2 participants