mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-05-21 07:14:47 -07:00
Properly close notification service channel
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user