forked from LBRYCommunity/lbry-sdk
make sure to close blob files when connection is lost on reflector client
This commit is contained in:
parent
d33ebd60c4
commit
6268e43509
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,9 @@ class EncryptedFileReflectorClient(Protocol):
|
|||
d.addErrback(self.response_failure_handler)
|
||||
|
||||
def connectionLost(self, reason):
|
||||
# make sure blob file readers get closed
|
||||
self.set_not_uploading()
|
||||
|
||||
if reason.check(error.ConnectionDone):
|
||||
if not self.needed_blobs:
|
||||
log.info("Reflector has all blobs for %s (%s)",
|
||||
|
|
Loading…
Reference in a new issue