forked from LBRYCommunity/lbry-sdk
fix uncaught CancelledError in peer_list
This commit is contained in:
parent
8c79421790
commit
78ad87d349
1 changed files with 4 additions and 1 deletions
|
@ -46,7 +46,10 @@ class DHTPeerFinder(object):
|
||||||
if timeout is not None:
|
if timeout is not None:
|
||||||
reactor.callLater(timeout, _trigger_timeout)
|
reactor.callLater(timeout, _trigger_timeout)
|
||||||
|
|
||||||
peer_list = yield finished_deferred
|
try:
|
||||||
|
peer_list = yield finished_deferred
|
||||||
|
except defer.CancelledError:
|
||||||
|
peer_list = []
|
||||||
|
|
||||||
peers = set(peer_list)
|
peers = set(peer_list)
|
||||||
good_peers = []
|
good_peers = []
|
||||||
|
|
Loading…
Reference in a new issue