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

Never unsubscribe before receiving connected #58

Merged
merged 1 commit into from
Sep 22, 2020
Merged

Conversation

alecdotninja
Copy link
Contributor

@alecdotninja alecdotninja commented Sep 22, 2020

I think a race here explains the intermittent test failures that recently became more prominent.

I suspect it also fixes the memory leak observed by @dannyvanhoof in #49 . My theory is that if unsubscribe is called too soon, the subscription is still created after the component is unmounted and left dangling in memory. I have not done thorough testing of this though.

@alecdotninja alecdotninja added the bug Something isn't working label Sep 22, 2020
@latortuga latortuga merged commit 439006e into master Sep 22, 2020
@latortuga latortuga deleted the test-failure-hunch branch September 22, 2020 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants