simplify shutdown signal handlers

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-01-29 01:18:08 +00:00
1 parent ed3cd99781
commit a567e314e9
3 files changed
+10 -23

No files matched your search

+1 -1
View File
@@ -112,7 +112,7 @@ impl Server {
}
#[inline]
pub async fn until_shutdown(self: Arc<Self>) {
pub async fn until_shutdown(self: &Arc<Self>) {
while self.running() {
self.signal.subscribe().recv().await.ok();
}