Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix pyexpat hang
  • Loading branch information
youknowone committed Dec 25, 2025
commit 25a25b762082fc852a4ab439d55d632243033cdf
4 changes: 3 additions & 1 deletion crates/stdlib/src/pyexpat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ mod _pyexpat {
where
T: IntoFuncArgs,
{
handler.read().call(args, vm).ok();
// Clone the handler while holding the read lock, then release the lock
let handler = handler.read().clone();
handler.call(args, vm).ok();
}

#[pyclass]
Expand Down
Loading