fixed thread crash in highfailurerate check in communicator

This commit is contained in:
Kevin Froman 2018-05-04 21:09:54 -05:00
parent d8b5127845
commit c3bf73d821
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B

View File

@ -603,8 +603,11 @@ class OnionrCommunicate:
peerTryCount = 0
for i in peerList:
try:
if self.peerData[i]['failCount'] >= self.highFailureAmount:
continue
except KeyError:
pass
if peerTryCount >= peerTries:
break