forked from LBRYCommunity/lbry-sdk
don't reflect empty last blob
This commit is contained in:
parent
070978248e
commit
b98cd24e10
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ class EncryptedFileReflectorClient(Protocol):
|
||||||
def get_validated_blobs(self, blobs_in_stream):
|
def get_validated_blobs(self, blobs_in_stream):
|
||||||
def get_blobs(blobs):
|
def get_blobs(blobs):
|
||||||
for (blob, _, _, blob_len) in blobs:
|
for (blob, _, _, blob_len) in blobs:
|
||||||
if blob:
|
if blob and blob_len:
|
||||||
yield self.blob_manager.get_blob(blob, blob_len)
|
yield self.blob_manager.get_blob(blob, blob_len)
|
||||||
|
|
||||||
dl = defer.DeferredList(list(get_blobs(blobs_in_stream)), consumeErrors=True)
|
dl = defer.DeferredList(list(get_blobs(blobs_in_stream)), consumeErrors=True)
|
||||||
|
|
Loading…
Add table
Reference in a new issue