bugfix: on restore, dont wait for download to finish
This commit is contained in:
parent
62fcbc23e3
commit
ffb48ef287
1 changed files with 4 additions and 1 deletions
|
@ -59,7 +59,10 @@ class ManagedEncryptedFileDownloader(EncryptedFileSaver):
|
||||||
self.claim_id = yield self.wallet.get_claimid(self.uri, self.txid, self.nout)
|
self.claim_id = yield self.wallet.get_claimid(self.uri, self.txid, self.nout)
|
||||||
status = yield self.lbry_file_manager.get_lbry_file_status(self)
|
status = yield self.lbry_file_manager.get_lbry_file_status(self)
|
||||||
if status == ManagedEncryptedFileDownloader.STATUS_RUNNING:
|
if status == ManagedEncryptedFileDownloader.STATUS_RUNNING:
|
||||||
yield self.start()
|
# start returns self.finished_deferred
|
||||||
|
# which fires when we've finished downloading the file
|
||||||
|
# and we don't want to wait for the entire download
|
||||||
|
self.start()
|
||||||
elif status == ManagedEncryptedFileDownloader.STATUS_STOPPED:
|
elif status == ManagedEncryptedFileDownloader.STATUS_STOPPED:
|
||||||
defer.returnValue(False)
|
defer.returnValue(False)
|
||||||
elif status == ManagedEncryptedFileDownloader.STATUS_FINISHED:
|
elif status == ManagedEncryptedFileDownloader.STATUS_FINISHED:
|
||||||
|
|
Loading…
Reference in a new issue