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

Fixed race condition in deferred link detection #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fixed race condition in deferred link detection #3

wants to merge 2 commits into from

Conversation

fluidsonic
Copy link

When a label's text is updated while the deferred link detection is still in progress the app most likely crashes.

detectedlinkLocations would contain the text checking results of the previous text - not the current one. So it's text ranges are no longer valid which in turn leads to a crash when using them e.g. for applying link styles.

Also the new text wasn't link-checked automatically since the previous link detection was not yet complete.

@fluidsonic
Copy link
Author

@jverkoey any news here?

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