From 2918d8c7b4c57869a7faddad764572f2b441de55 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 9 Mar 2022 17:46:47 -0300 Subject: [PATCH] tracker component is running only if the task is alive --- lbry/extras/daemon/components.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lbry/extras/daemon/components.py b/lbry/extras/daemon/components.py index 5bd2460cf..754c4fe0f 100644 --- a/lbry/extras/daemon/components.py +++ b/lbry/extras/daemon/components.py @@ -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