tracker component is running only if the task is alive

This commit is contained in:
Victor Shyba 2022-03-09 17:46:47 -03:00
parent 407c570f8b
commit 2918d8c7b4

View file

@ -727,6 +727,10 @@ class TrackerAnnouncerComponent(Component):
def component(self): def component(self):
return self return self
@property
def running(self):
return self._running and self.announce_task and not self.announce_task.done()
async def announce_forever(self): async def announce_forever(self):
while True: while True:
to_sleep = 60.0 to_sleep = 60.0