mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
simplify shutdown signal handlers
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user