forked from LBRYCommunity/lbry-sdk
set downloading_headers to False after the download finishes or fails
This commit is contained in:
parent
917bae568d
commit
8b53140581
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue