mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: channel blockage caused by fuse permissions under the root user (#321)
This commit is contained in:
parent
24fd587431
commit
5c3c100d5d
1 changed files with 4 additions and 2 deletions
|
|
@ -52,8 +52,10 @@ impl Files {
|
||||||
while let Ok(Some(item)) = it.next_entry().await {
|
while let Ok(Some(item)) = it.next_entry().await {
|
||||||
select! {
|
select! {
|
||||||
_ = tx.closed() => break,
|
_ = tx.closed() => break,
|
||||||
Ok(meta) = item.metadata() => {
|
result = item.metadata() => {
|
||||||
tx.send(File::from_meta(Url::from(item.path()), meta).await).ok();
|
if let Ok(meta) = result {
|
||||||
|
tx.send(File::from_meta(Url::from(item.path()), meta).await).ok();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue