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
This commit is contained in:
Jack Robison 2018-06-19 13:38:25 -04:00
parent 64a961c88c
commit eb660e23b7
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 2 additions and 1 deletions

View file

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

View file

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