From 0b59befc422185a824bde3f45427e57bdd38fe08 Mon Sep 17 00:00:00 2001 From: Baptiste Careil Date: Sun, 29 Dec 2024 10:19:51 +0100 Subject: [PATCH] Fix delayed action not being executed --- src/daemon/action.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/action.rs b/src/daemon/action.rs index 1be79ee..c86093b 100644 --- a/src/daemon/action.rs +++ b/src/daemon/action.rs @@ -93,7 +93,7 @@ impl ActionManager { tokio::time::sleep(dur).await; #[allow(clippy::unwrap_used)] // propagating panics is ok let mut state = this.state.lock().unwrap(); - if state.remove(&m, &t) { + if state.remove(&m, &exec_t) { this.exec_now(m); } });