jianghuyihei commited on
Commit
ced8510
·
1 Parent(s): 73d711d
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -431,7 +431,7 @@ async def websocket_endpoint(websocket: WebSocket):
431
  print(action)
432
  if action == "disconnect":
433
  for item in list(queue.queue):
434
- if item[0] == user_id:
435
  queue.queue.remove(item)
436
  break
437
  print(f"User {user_id} disconnected.")
 
431
  print(action)
432
  if action == "disconnect":
433
  for item in list(queue.queue):
434
+ if item == user_id:
435
  queue.queue.remove(item)
436
  break
437
  print(f"User {user_id} disconnected.")