fixed thread crash in highfailurerate check in communicator
This commit is contained in:
parent
d8b5127845
commit
c3bf73d821
@ -603,8 +603,11 @@ class OnionrCommunicate:
|
|||||||
peerTryCount = 0
|
peerTryCount = 0
|
||||||
|
|
||||||
for i in peerList:
|
for i in peerList:
|
||||||
if self.peerData[i]['failCount'] >= self.highFailureAmount:
|
try:
|
||||||
continue
|
if self.peerData[i]['failCount'] >= self.highFailureAmount:
|
||||||
|
continue
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
if peerTryCount >= peerTries:
|
if peerTryCount >= peerTries:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user