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
|
||||
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.
|
||||
yield EncryptedFileDownloader.stop(self, err=err)
|
||||
if change_status is True:
|
||||
|
|
Loading…
Add table
Reference in a new issue