set downloading_headers to False after the download finishes or fails

This commit is contained in:
Jack Robison 2018-08-09 09:24:04 -04:00
parent 917bae568d
commit 8b53140581
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -293,6 +293,8 @@ class HeadersComponent(Component):
yield self.fetch_headers_from_s3() yield self.fetch_headers_from_s3()
except Exception as err: except Exception as err:
log.error("failed to fetch headers from s3: %s", err) log.error("failed to fetch headers from s3: %s", err)
finally:
self._downloading_headers = False
def stop(self): def stop(self):
return defer.succeed(None) return defer.succeed(None)