From eb660e23b7159b2ecfefa225b7378eda39c17e3c Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Tue, 19 Jun 2018 13:38:25 -0400 Subject: [PATCH] fix download being stopped if the sd blob downloaded and data did not start within the timeout fixes https://github.com/lbryio/lbry/issues/1172 --- CHANGELOG.md | 1 + lbrynet/daemon/Daemon.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44dfc27aa..f1ed557d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ at anytime. * approximations of bid when cast from float to Decimal during publish * blob client protocol not tearing itself down properly after a failure (https://github.com/lbryio/lbry/issues/950) * lockup in wallet startup when one or more lbryumx servers are unavailable (https://github.com/lbryio/lbry/issues/1245) + * download being stopped if the sd blob downloaded and data did not start within the timeout (https://github.com/lbryio/lbry/issues/1172) ### Deprecated * diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index bacba95fa..db2726208 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -702,7 +702,7 @@ class Daemon(AuthJSONRPCServer): log.warning('Failed to get %s (%s)', name, err) else: log.error('Failed to get %s (%s)', name, err) - if self.streams[sd_hash].downloader: + if self.streams[sd_hash].downloader and self.streams[sd_hash].code != 'running': yield self.streams[sd_hash].downloader.stop(err) result = {'error': err.message} finally: