Skip to content

Commit c08a2ce

Browse files
authored
🐛 add saving session id for the host
1 parent 1edd3e2 commit c08a2ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ async def launch_session(host: str = Body(embed=True), authorization: HTTPAuthor
262262
request = pb2.SessionLaunchInfo(hostId=host)
263263
response = sync_stub.Launch(request)
264264
sessions_players[response.sessionId] = [host]
265+
hosts_sessions[host] = response.sessionId
265266
return JSONResponse(
266267
status_code=201,
267268
headers={

0 commit comments

Comments
 (0)