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: add staggering to isolate spawning to avoid freezing of app #416

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kumulynja
Copy link
Contributor

@kumulynja kumulynja commented Jan 7, 2025

This fix tries to solve the freezing of the app during startup and syncing that happens when a lot of payjoin isolates are spawned at the same time by adding a delay between isolate spawning.

@i5hi I tried this on an Android emulator, where I was able to get the app to freeze during initial syncing and then not have it freeze anymore with this fix, but I think it would be good to have some thorough tests on a real device still before merging by initiating a lot of sessions and making sure it doesn't freeze anymore on startup/resume of the app. If it still freezes, we might need to increase the delay time, but I think it is better to keep it as low as possible so all payjoin sessions can advance as soon as possible when a user opens the app.

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.

1 participant