app: close server connections when closing app

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2020-11-17 06:43:57 -05:00
parent 7ca910ec46
commit 346fce177f
1 changed files with 1 additions and 0 deletions

View File

@ -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()