Merge pull request #1269 from lbryio/fix_stop_nonetype
Fix stop raising `NoneType' object has no attribute 'finished_deferred'
This commit is contained in:
commit
a1f3fc9f3c
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ at anytime.
|
|||
*
|
||||
|
||||
### Fixed
|
||||
*
|
||||
* Fixed a scenario where stopping downloads raises `NoneType object has no attribute finished_deferred`.
|
||||
*
|
||||
|
||||
### Deprecated
|
||||
|
|
|
@ -116,8 +116,8 @@ class ClientProtocol(Protocol, TimeoutMixin):
|
|||
d.errback(err)
|
||||
ds.append(d)
|
||||
if self._blob_download_request is not None:
|
||||
self._blob_download_request.cancel(err)
|
||||
ds.append(self._blob_download_request.finished_deferred)
|
||||
self._blob_download_request.cancel(err)
|
||||
self._blob_download_request = None
|
||||
self._downloading_blob = False
|
||||
return defer.DeferredList(ds)
|
||||
|
|
Loading…
Reference in a new issue