From 4462f02c103f7881b040b5f2d87c5075c8b5bb9f Mon Sep 17 00:00:00 2001 From: Simon Fondrie-Teitler Date: Sat, 9 Aug 2025 14:55:13 -0400 Subject: [PATCH] Properly close notification service channel --- daemon/src/notifications.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/src/notifications.rs b/daemon/src/notifications.rs index b3c801c..cf39dbd 100644 --- a/daemon/src/notifications.rs +++ b/daemon/src/notifications.rs @@ -138,7 +138,9 @@ pub fn run_notification_worker( // If there's no channel name we'll just discard the notifications else { loop { - notification_service.rx.recv().await; + if notification_service.rx.recv().await.is_none() { + break; + } } } });