From be5688aed921cd3298c7c5fbbbb7c8d6bdc03e74 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Thu, 26 Feb 2026 20:35:41 +0800 Subject: [PATCH] .. --- yazi-shared/src/last_value.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yazi-shared/src/last_value.rs b/yazi-shared/src/last_value.rs index c1d8e6c7..8ebcc26e 100644 --- a/yazi-shared/src/last_value.rs +++ b/yazi-shared/src/last_value.rs @@ -16,11 +16,12 @@ impl LastValue { pub async fn get(&self) -> T { loop { + let notified = self.inner.0.notified(); if let Some(data) = self.inner.1.lock().take() { return data; } - self.inner.0.notified().await; + notified.await; } } }