From 8b531405814a22eb183d27996357dad9498cc84d Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 9 Aug 2018 09:24:04 -0400 Subject: [PATCH] set downloading_headers to False after the download finishes or fails --- lbrynet/daemon/Components.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lbrynet/daemon/Components.py b/lbrynet/daemon/Components.py index 053240986..01288c5e5 100644 --- a/lbrynet/daemon/Components.py +++ b/lbrynet/daemon/Components.py @@ -293,6 +293,8 @@ class HeadersComponent(Component): yield self.fetch_headers_from_s3() except Exception as err: log.error("failed to fetch headers from s3: %s", err) + finally: + self._downloading_headers = False def stop(self): return defer.succeed(None)