app: close server connections when closing app
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
7ca910ec46
commit
346fce177f
|
@ -150,6 +150,7 @@ class MoonrakerApp:
|
|||
async def close(self):
|
||||
if self.tornado_server is not None:
|
||||
self.tornado_server.stop()
|
||||
await self.tornado_server.close_all_connections()
|
||||
await self.wsm.close()
|
||||
self.auth.close()
|
||||
|
||||
|
|
Loading…
Reference in New Issue