Assure notifier is initialized first
This commit is contained in:
parent
a3aacd6291
commit
61cfd72d1f
1 changed files with 3 additions and 1 deletions
|
@ -235,8 +235,10 @@ class Treepuncher(
|
||||||
await super().start()
|
await super().start()
|
||||||
if not self.notifier:
|
if not self.notifier:
|
||||||
self.notifier = Notifier(self)
|
self.notifier = Notifier(self)
|
||||||
|
await self.notifier.initialize()
|
||||||
for m in self.modules:
|
for m in self.modules:
|
||||||
await m.initialize()
|
if not isinstance(m, Notifier):
|
||||||
|
await m.initialize()
|
||||||
self._processing = True
|
self._processing = True
|
||||||
self._worker = asyncio.get_event_loop().create_task(self._work())
|
self._worker = asyncio.get_event_loop().create_task(self._work())
|
||||||
self.scheduler.resume()
|
self.scheduler.resume()
|
||||||
|
|
Loading…
Reference in a new issue