Skip to content

Commit cde8062

Browse files
committed
Prevent the websocket from being closed when we ask the robot to execute something
1 parent 154218e commit cde8062

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

codebotler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@ async def handle_message(websocket, message, args):
107107
print("Received eval request")
108108
# await eval(websocket, data)
109109
elif data['type'] == 'execute':
110-
print("Executing generated code")
110+
print("Executing generated code...")
111111
execute(data['code'])
112-
await websocket.close()
113112
else:
114113
print("Unknown message type: " + data['type'])
115114

0 commit comments

Comments
 (0)