Add some backup checks when stopping maubot

This commit is contained in:
Tulir Asokan 2018-11-11 21:20:50 +02:00
parent 20a9ca6aa6
commit 6f2162d5f3
3 changed files with 10 additions and 3 deletions

View file

@ -99,6 +99,7 @@ class MaubotServer:
self.log.info(f"Listening on {site.name}")
async def stop(self) -> None:
await self.runner.shutdown()
await self.runner.cleanup()
@staticmethod