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

fix: ensure liveupdate pubsubs exit #5557

Merged

Conversation

pajlada
Copy link
Member

@pajlada pajlada commented Aug 24, 2024

No description provided.

Previously, the derived class (i.e. BttvLiveUpdates or SeventvEventAPI)
    would have their destructor ran before BasicPubSubManager called
    stop, meaning there was a time wherein messages could still flow
    through, attempting to call `onMessage` on a pure virtual, causing a
    crash.
This can reliably fail if the thread join fails
Copy link
Member Author

@pajlada pajlada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

stop do something

this makes it easier to test things
@pajlada pajlada merged commit aa048b3 into master Aug 24, 2024
17 checks passed
@pajlada pajlada deleted the fix/rip-out-liveupdate-websocket-clients-if-they-dont-stop branch August 24, 2024 12:01
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