Replace use of blocking function on search results channel, fixes #601

This commit is contained in:
Jeremy Soller 2025-01-16 17:56:13 -07:00
parent 5e65ca6d0b
commit f8830814c1
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -2754,9 +2754,7 @@ impl Tab {
if let Some(items) = &mut self.items_opt {
if finished || context.ready.swap(false, atomic::Ordering::SeqCst) {
let duration = Instant::now();
while let Some((path, name, metadata)) =
context.results_rx.blocking_recv()
{
while let Ok((path, name, metadata)) = context.results_rx.try_recv() {
//TODO: combine this with column_sort logic, they must match!
let item_modified = metadata.modified().ok();
let index = match items.binary_search_by(|other| {