tracker component is running only if the task is alive
This commit is contained in:
parent
407c570f8b
commit
2918d8c7b4
1 changed files with 4 additions and 0 deletions
|
@ -727,6 +727,10 @@ class TrackerAnnouncerComponent(Component):
|
|||
def component(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):
|
||||
while True:
|
||||
to_sleep = 60.0
|
||||
|
|
Loading…
Reference in a new issue