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

@ -97,8 +97,8 @@ pub async fn watch(&self, user_id: &UserId, device_id: &DeviceId) -> Result {
);
// Server shutdown
let server_shutdown = self.services.server.clone().until_shutdown().boxed();
futures.push(server_shutdown);
futures.push(self.services.server.until_shutdown().boxed());
if !self.services.server.running() {
return Ok(());
}