mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 01:35:28 +01:00
Merge branch 'bug/mc-ping-traceback' into 'dev'
Wrap sock.recv in try/execpt to stop failure See merge request crafty-controller/crafty-4!444
This commit is contained in:
commit
1ca34948cc
@ -7,10 +7,9 @@
|
||||
- Fix performance issues on server metrics panels 'with metrics range' ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/440)) ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/448))
|
||||
- Fix no id on import3 servers ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/442))
|
||||
- Fix functionality of bedrock update ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/441))
|
||||
- Fix mc-ping Traceback ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/444))
|
||||
### Tweaks
|
||||
- Flatten input on password resets ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/447))
|
||||
### Lang
|
||||
TBD
|
||||
<br><br>
|
||||
|
||||
## --- [4.0.11] - 2022/08/28
|
||||
|
@ -121,8 +121,11 @@ def ping(ip, port):
|
||||
i = 0
|
||||
j = 0
|
||||
while True:
|
||||
k = sock.recv(1)
|
||||
if not k:
|
||||
try:
|
||||
k = sock.recv(1)
|
||||
if not k:
|
||||
raise Exception()
|
||||
except:
|
||||
return 0
|
||||
k = k[0]
|
||||
i |= (k & 0x7F) << (j * 7)
|
||||
|
Loading…
x
Reference in New Issue
Block a user