forked from LBRYCommunity/lbry-sdk
call blob_completed when is_validated is true
This commit is contained in:
parent
c046cd02d5
commit
8e7b8af180
1 changed files with 3 additions and 2 deletions
|
@ -85,11 +85,12 @@ class ReflectorServer(Protocol):
|
|||
|
||||
def determine_blob_needed(self, blob):
|
||||
if blob.is_validated():
|
||||
return {'send_blob': False}
|
||||
d = self.blob_manager.blob_completed(blob)
|
||||
d.addCallback(lambda _: {'send_blob': False})
|
||||
return d
|
||||
else:
|
||||
self.incoming_blob = blob
|
||||
self.blob_finished_d, self.blob_write, self.cancel_write = blob.open_for_writing(self.peer)
|
||||
self.blob_finished_d.addCallback(lambda _: self.blob_manager.blob_completed(blob))
|
||||
return {'send_blob': True}
|
||||
|
||||
def close_blob(self):
|
||||
|
|
Loading…
Reference in a new issue