Skip to content

fix: handle poisoned mutexes in file watcher#24

Open
echobt wants to merge 1 commit intomainfrom
fix/issue-111
Open

fix: handle poisoned mutexes in file watcher#24
echobt wants to merge 1 commit intomainfrom
fix/issue-111

Conversation

@echobt
Copy link
Copy Markdown
Contributor

@echobt echobt commented Jan 20, 2026

Replaces lock().unwrap() with lock().unwrap_or_else(|e| e.into_inner()) in src/watcher.rs to prevent the file watcher from crashing if a mutex becomes poisoned. This ensures robustness against panic propagation across threads.

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