simplify shutdown signal handlers

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2025-01-28 20:02:29 +00:00
parent ed3cd99781
commit a567e314e9
3 changed files with 10 additions and 23 deletions

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();
}