mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01: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 {
|
||||
select! {
|
||||
_ = tx.closed() => break,
|
||||
Ok(meta) = item.metadata() => {
|
||||
tx.send(File::from_meta(Url::from(item.path()), meta).await).ok();
|
||||
result = item.metadata() => {
|
||||
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