Minor fixes

This commit is contained in:
2023-07-13 01:17:01 +03:00
parent a15eb316bb
commit 85c379bd9e
2 changed files with 9 additions and 13 deletions

View File

@@ -337,5 +337,6 @@ class Core:
def stop(self):
self.run = False
self.log.info(i18n.stop)
asyncio.run(self.web_stop())
if config.WebAPI["enabled"]:
asyncio.run(self.web_stop())
exit(0)