Spaces:
Running
Running
jianghuyihei
commited on
Commit
·
ced8510
1
Parent(s):
73d711d
fix
Browse files
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
|
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.")
|