reordered stop sequence

This commit is contained in:
əlemi 2022-04-23 15:22:04 +02:00
parent d5d1f8c036
commit 977ce7a9de
No known key found for this signature in database
GPG key ID: F239DD0985A7A5E9

View file

@ -243,9 +243,9 @@ class Treepuncher(
await self.dispatcher.disconnect(block=not force)
if not force:
await self._worker
await self.join_callbacks()
for m in self.modules:
await m.cleanup()
await self.join_callbacks()
await super().stop()
self.logger.info("Treepuncher stopped")