From 2e09d2adfa5954e43ed192a2b9905580e8fb51c8 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 8 May 2019 23:00:57 -0300 Subject: [PATCH] close search on transport close --- lbrynet/dht/protocol/iterative_find.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lbrynet/dht/protocol/iterative_find.py b/lbrynet/dht/protocol/iterative_find.py index adbe202c2..87472d87c 100644 --- a/lbrynet/dht/protocol/iterative_find.py +++ b/lbrynet/dht/protocol/iterative_find.py @@ -169,7 +169,9 @@ class IterativeFinder: log.warning(str(err)) self.active.discard(peer) return - except (RemoteException, TransportNotConnected): + except TransportNotConnected: + return self.aclose() + except RemoteException: return return await self._handle_probe_result(peer, response)