Apply 1 suggestion(s) to 1 file(s)

This commit is contained in:
Iain Powrie 2022-09-03 16:40:59 +00:00 committed by Andrew
parent 0bc7e584e0
commit 3bdaec7837

View File

@ -123,10 +123,10 @@ def ping(ip, port):
while True:
try:
k = sock.recv(1)
if not k:
raise Exception()
except:
return 0
if not k:
return 0
k = k[0]
i |= (k & 0x7F) << (j * 7)
j += 1