reordered stop sequence
This commit is contained in:
parent
d5d1f8c036
commit
977ce7a9de
1 changed files with 1 additions and 1 deletions
|
@ -243,9 +243,9 @@ class Treepuncher(
|
||||||
await self.dispatcher.disconnect(block=not force)
|
await self.dispatcher.disconnect(block=not force)
|
||||||
if not force:
|
if not force:
|
||||||
await self._worker
|
await self._worker
|
||||||
|
await self.join_callbacks()
|
||||||
for m in self.modules:
|
for m in self.modules:
|
||||||
await m.cleanup()
|
await m.cleanup()
|
||||||
await self.join_callbacks()
|
|
||||||
await super().stop()
|
await super().stop()
|
||||||
self.logger.info("Treepuncher stopped")
|
self.logger.info("Treepuncher stopped")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue