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: Realm accessed from the wrong thread #1293

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Conversation

adrien-coye
Copy link
Contributor

@adrien-coye adrien-coye commented Sep 17, 2024

Sentry id KDRIVE-IOS-9PM

Copy link

@adrien-coye adrien-coye added the bug Something isn't working label Sep 17, 2024
@PhilippeWeidmann
Copy link
Member

PhilippeWeidmann commented Sep 18, 2024

Not sure this will work every time. I think we have something fundamentally broken with notify/observe. Will discuss in DM.

Edit: All good notify/observe correctly freezes the file. It was currentFile which wasn't on the right thread.
I'm approving the PR. However we could maybe freeze all our files before sending them to the preview as after a notify they will end up frozen anyway?

@PhilippeWeidmann PhilippeWeidmann self-requested a review September 18, 2024 06:09
@PhilippeWeidmann PhilippeWeidmann merged commit 116f353 into master Sep 18, 2024
4 checks passed
@PhilippeWeidmann PhilippeWeidmann deleted the fix-realm-access branch September 18, 2024 09:03
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