mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Apply 1 suggestion(s) to 1 file(s)
This commit is contained in:
parent
0bc7e584e0
commit
3bdaec7837
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user