forked from LBRYCommunity/lbry-sdk
more bug fixes
This commit is contained in:
parent
16e596ec87
commit
7be53ad692
2 changed files with 3 additions and 3 deletions
|
@ -670,8 +670,8 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
claim_dict, name, txid, nout, file_name
|
claim_dict, name, txid, nout, file_name
|
||||||
))
|
))
|
||||||
finished_deferred.addCallbacks(
|
finished_deferred.addCallbacks(
|
||||||
lambda _: _download_finished(download_id, name, claim_dict),
|
lambda _: asyncio.create_task(_download_finished(download_id, name, claim_dict)),
|
||||||
lambda e: _download_failed(e, download_id, name, claim_dict)
|
lambda e: asyncio.create_task(_download_failed(e, download_id, name, claim_dict))
|
||||||
)
|
)
|
||||||
result = await self._get_lbry_file_dict(lbry_file)
|
result = await self._get_lbry_file_dict(lbry_file)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
|
|
|
@ -116,7 +116,7 @@ class EncryptedFileReflectorClient(Protocol):
|
||||||
for crypt_blob in blobs:
|
for crypt_blob in blobs:
|
||||||
if crypt_blob.blob_hash and crypt_blob.length:
|
if crypt_blob.blob_hash and crypt_blob.length:
|
||||||
yield self.blob_manager.get_blob(crypt_blob.blob_hash, crypt_blob.length)
|
yield self.blob_manager.get_blob(crypt_blob.blob_hash, crypt_blob.length)
|
||||||
return [blob for r, blob in get_blobs(blobs_in_stream) if r and blob.get_is_verified()]
|
return [blob for blob in get_blobs(blobs_in_stream) if blob.get_is_verified()]
|
||||||
|
|
||||||
def set_blobs_to_send(self, blobs_to_send):
|
def set_blobs_to_send(self, blobs_to_send):
|
||||||
for blob in blobs_to_send:
|
for blob in blobs_to_send:
|
||||||
|
|
Loading…
Add table
Reference in a new issue