From c5f4f582210754883d32bf5957d91bbf123e61c3 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sat, 23 Jun 2018 18:23:25 -0300 Subject: [PATCH] collect finished deferred before cancel call --- lbrynet/core/client/ClientProtocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/core/client/ClientProtocol.py b/lbrynet/core/client/ClientProtocol.py index 64aab1e28..fca7cb38d 100644 --- a/lbrynet/core/client/ClientProtocol.py +++ b/lbrynet/core/client/ClientProtocol.py @@ -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)