fix: wait for req socket send to make sure we dont stay stuck - if there's no REP this would be awaited forever.

ref: N25B-205
This commit is contained in:
Björn Otgaar
2025-10-29 13:31:24 +01:00
parent 158911b134
commit b83a362abe
2 changed files with 25 additions and 5 deletions

View File

@@ -17,6 +17,5 @@ async def receive_command(command: SpeechCommand, request: Request):
topic = b"command"
pub_socket: Socket = request.app.state.internal_comm_socket
pub_socket.send_multipart([topic, command.model_dump_json().encode()])
return {"status": "Command received"}