simplify shutdown signal handlers
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
ed3cd99781
commit
a567e314e9
3 changed files with 10 additions and 23 deletions
|
@ -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(());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue