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

Remove invalidation while session is valid. #24

Closed
wants to merge 1 commit into from

Conversation

powerje
Copy link
Collaborator

@powerje powerje commented May 13, 2023

Attempting to set: invalidations[session] = nil would sometimes crash due to bad memory access, presumably because the invalidation closure has run and the session is no longer valid.

This update grabs the invalidation closure, then removes it from the map, then calls the closure to invalidate.

Attempting to set: `invalidations[session] = nil` would sometimes crash due
to bad memory access, presumably because the invalidation closure has
run and the session is no longer valid.

This update grabs the invalidation closure, then removes it from the
map, then calls the closure to invalidate.
@powerje powerje requested a review from watts08 May 13, 2023 10:51
@powerje powerje added the bug Something isn't working label May 13, 2023
@powerje
Copy link
Collaborator Author

powerje commented May 16, 2023

Eh not sure this really did anything useful, once the session is gone, it's gone

@powerje powerje closed this May 16, 2023
@powerje powerje deleted the invalidation_redux branch May 16, 2023 00:46
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.

None yet

1 participant