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 unlocking when an error occurs in the js drawing code. #303

Merged
merged 5 commits into from
Mar 24, 2022

Conversation

chrfalch
Copy link
Contributor

@chrfalch chrfalch commented Mar 24, 2022

When an exception occurs in the javascript rendering code, we are not catching it in the C++ code, meaning that any drawing locks being held will not be released. This PR fixes this by catching any error, unlocking and then throwing again so the error will be visible to the user.

closes #302

@chrfalch chrfalch requested a review from wcandillon March 24, 2022 12:20
@wcandillon
Copy link
Contributor

nice 👍🏻

@chrfalch chrfalch merged commit 7315f6b into main Mar 24, 2022
@wcandillon wcandillon deleted the bugfix/302-fix-unlock-when-drawing-fails branch March 28, 2022 08:19
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.

When draw functions fail we don't unlock drawing locks
2 participants