Properly close notification service channel

This commit is contained in:
Simon Fondrie-Teitler
2025-08-09 14:55:13 -04:00
parent 5bd2d9a58e
commit 4462f02c10

View File

@@ -138,7 +138,9 @@ pub fn run_notification_worker(
// If there's no channel name we'll just discard the notifications // If there's no channel name we'll just discard the notifications
else { else {
loop { loop {
notification_service.rx.recv().await; if notification_service.rx.recv().await.is_none() {
break;
}
} }
} }
}); });