set verified after callback

This commit is contained in:
Victor Shyba 2019-02-05 13:17:00 -03:00
parent c6b910a5f3
commit a4ced4dbd2

View file

@ -111,9 +111,9 @@ class BlobFile:
if self.verified.is_set():
return
await self.loop.run_in_executor(None, _save_verified)
self.verified.set()
if self.blob_completed_callback:
await self.blob_completed_callback(self)
self.verified.set()
def open_for_writing(self) -> HashBlobWriter:
if os.path.exists(self.file_path):