Skip to content

Commit 77284ed

Browse files
committed
Small adjustments
1 parent 3da5465 commit 77284ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

external-control-backend/src/request_program.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ def send_command(self, command: str):
6666
while True:
6767
try:
6868
data = s.recv(5)
69+
# if not data:
70+
# break # Connection closed by the server
6971
raw_data += data
7072
except socket.timeout:
71-
print("No data received from the server")
7273
if raw_data != b"":
73-
print(raw_data)
74+
print("Done receiving data")
7475
break
7576
elif time.time() - begin > timeout:
7677
s.close()

0 commit comments

Comments
 (0)