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

Pr/265 #266

Merged
merged 2 commits into from
Jul 17, 2019
Merged

Pr/265 #266

merged 2 commits into from
Jul 17, 2019

Conversation

nateps
Copy link
Contributor

@nateps nateps commented Jul 17, 2019

No description provided.

@nateps nateps merged commit 04a7515 into master Jul 17, 2019
@nateps nateps deleted the pr/265 branch July 17, 2019 17:59
ericyhwang added a commit that referenced this pull request Mar 25, 2020
…subscribing

When a doc gets unfetched, #276 adds a Share Doc whenNothingPending listener to unload the doc later, instead of doing nothing, which was the cause of a memory leak introduced in #266.

However, Racer keeps reference counts itself for fetches and subscriptions, so an immediate subscribe on the same Racer doc does not affect the Share doc at all, which means the doc would still get unloaded, erroneously.

This fix instead retries the Racer _maybeUnloadDoc in that scenario, instead of doing an immediate unload. That guards against Racer getting new doc references while the Share Doc whenNotingPending is in progress.
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