Merge branch 'main' of https://github.com/AraComITServicesGmbH/emotionale-robotik
This commit is contained in:
commit
ad7255bdee
@ -26,10 +26,13 @@ def update_from_server(queue: Queue):
|
|||||||
client_socket.connect((SERVER_IP, SERVER_PORT))
|
client_socket.connect((SERVER_IP, SERVER_PORT))
|
||||||
print_connect()
|
print_connect()
|
||||||
while True:
|
while True:
|
||||||
|
try:
|
||||||
result = receive_image_and_emotions(client_socket)
|
result = receive_image_and_emotions(client_socket)
|
||||||
if result is not None:
|
if result is not None:
|
||||||
queue.put(result)
|
queue.put(result)
|
||||||
except Exception: #Normally only if disconnect EOFError
|
except EOFError:
|
||||||
|
pass
|
||||||
|
except Exception:
|
||||||
print_disconnect()
|
print_disconnect()
|
||||||
client_socket.close()
|
client_socket.close()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 24 KiB |
Loading…
Reference in New Issue
Block a user