Fixed shutdown procedure async problems #1.1.0.rc2

This commit is contained in:
2023-08-16 18:04:40 +02:00
parent 44f6b36347
commit caeec47b7c
5 changed files with 14 additions and 6 deletions

View File

@@ -71,7 +71,7 @@ class Application(DiscordBotApplicationABC):
self._api.stop()
await self._bot.close()
self._data_integrity.check_data_integrity(is_for_shutdown=True)
await self._data_integrity.check_data_integrity(is_for_shutdown=True)
self._logger.info(__name__, f"Stopped {DiscordBotService.__name__}")
except Exception as e:
self._logger.error(__name__, "stop failed", e)