Skip to content

fix: throw error on reentrant plugin call#836

Merged
chrisdickinson merged 1 commit intomainfrom
chris/20250226-try-lock
Feb 26, 2025
Merged

fix: throw error on reentrant plugin call#836
chrisdickinson merged 1 commit intomainfrom
chris/20250226-try-lock

Conversation

@chrisdickinson
Copy link
Copy Markdown
Contributor

Previously, code that called a plugin that called a host function that called back into the plugin would hang in an attempt to attain the lock. Switch to try_lock so we can surface the error.

(Just noticed this in Discord this AM.)

Previously, code that called a plugin that called a host function that
called back into the plugin would hang in an attempt to attain the lock.
Switch to `try_lock` so we can surface the error.
Copy link
Copy Markdown
Contributor

@zshipko zshipko left a comment

Choose a reason for hiding this comment

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

Thanks, this will be a nice improvement!

@chrisdickinson chrisdickinson merged commit 2524707 into main Feb 26, 2025
5 checks passed
@chrisdickinson chrisdickinson deleted the chris/20250226-try-lock branch February 26, 2025 19:37
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.

2 participants