fix case when downloader is stopped before sd_hash is loaded

This commit is contained in:
Kay Kurokawa 2017-06-15 14:31:02 -04:00
parent a5b33fdb0b
commit 0b5051823f

View file

@ -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: