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
1 changed files with 5 additions and 2 deletions

View File

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