mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
fix: unexpected error due to channel closing
This commit is contained in:
parent
9bf4f70b3a
commit
a5949c5cb5
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ impl Event {
|
|||
|
||||
pub async fn wait<T>(self, rx: oneshot::Receiver<T>) -> T {
|
||||
TX.send(self).ok();
|
||||
rx.await.unwrap()
|
||||
rx.await.unwrap_or_else(|_| std::process::exit(0))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue