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

Fixes "Failed to persist session" error on iOS #3655

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

jamescrosswell
Copy link
Collaborator

Fixes #3653

Ideally we'd be able to reproduce this in a unit test to prevent a regression.

Regardless, it looks like there might be a timing issue where sometimes the writer tries to do something with the file after File.Dispose() has been called. I've moved the writer inside the try block to ensure writer.Dispose() is called before file.Dispose(), which should avoid the problem.

Copy link
Collaborator

@bricefriha bricefriha left a comment

Choose a reason for hiding this comment

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

Makes sense to me.

@jamescrosswell jamescrosswell merged commit bc31f16 into main Oct 7, 2024
22 checks passed
@jamescrosswell jamescrosswell deleted the fix/persist-session-flush branch October 7, 2024 11:28
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.

Failed to persist session on the file system.
2 participants