fix: open_path_ensure deadlock (#424)

* fix: open_path_ensure deadlock

* fix: cargo make format
This commit is contained in:
fun with rust
2026-02-13 11:48:17 +01:00
committed by GitHub
parent 4f8afee29f
commit 315f491bfb
+8 -2
View File
@@ -423,8 +423,14 @@ impl Connection {
match open_res {
Ok((path_id, existed)) if existed => {
match state.open_path.get(&path_id).map(|tx| tx.subscribe()) {
Some(recv) => OpenPath::new(path_id, recv, self.0.clone()),
None => OpenPath::ready(path_id, self.0.clone()),
Some(recv) => {
drop(state);
OpenPath::new(path_id, recv, self.0.clone())
}
None => {
drop(state);
OpenPath::ready(path_id, self.0.clone())
}
}
}
Ok((path_id, _)) => {