From 0b5051823fb05ca7528fcd1882508421f8943cb1 Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Thu, 15 Jun 2017 14:31:02 -0400 Subject: [PATCH] fix case when downloader is stopped before sd_hash is loaded --- lbrynet/lbryfilemanager/EncryptedFileDownloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/lbryfilemanager/EncryptedFileDownloader.py b/lbrynet/lbryfilemanager/EncryptedFileDownloader.py index c00a3ebe3..d6d83c019 100644 --- a/lbrynet/lbryfilemanager/EncryptedFileDownloader.py +++ b/lbrynet/lbryfilemanager/EncryptedFileDownloader.py @@ -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: