forked from LBRYCommunity/lbry-sdk
fix case when downloader is stopped before sd_hash is loaded
This commit is contained in:
parent
a5b33fdb0b
commit
0b5051823f
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class ManagedEncryptedFileDownloader(EncryptedFileSaver):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def stop(self, err=None, change_status=True):
|
def stop(self, err=None, change_status=True):
|
||||||
log.debug('Stopping download for %s', short_hash(self.sd_hash))
|
log.debug('Stopping download for stream %s', short_hash(self.stream_hash))
|
||||||
# EncryptedFileSaver deletes metadata when it's stopped. We don't want that here.
|
# EncryptedFileSaver deletes metadata when it's stopped. We don't want that here.
|
||||||
yield EncryptedFileDownloader.stop(self, err=err)
|
yield EncryptedFileDownloader.stop(self, err=err)
|
||||||
if change_status is True:
|
if change_status is True:
|
||||||
|
|
Loading…
Add table
Reference in a new issue