Spaces:
Sleeping
Sleeping
Commit
·
2027174
1
Parent(s):
29089cf
fix
Browse files
main.py
CHANGED
|
@@ -93,8 +93,8 @@ def disconnect():
|
|
| 93 |
|
| 94 |
if room in rooms:
|
| 95 |
rooms[room]["members"] -= 1
|
| 96 |
-
if rooms[room]["members"] <= 0:
|
| 97 |
-
|
| 98 |
|
| 99 |
send({"name": name, "message": "has left the room"}, to=room)
|
| 100 |
print(f"{name} has left the room {room}")
|
|
|
|
| 93 |
|
| 94 |
if room in rooms:
|
| 95 |
rooms[room]["members"] -= 1
|
| 96 |
+
# if rooms[room]["members"] <= 0:
|
| 97 |
+
# del rooms[room]
|
| 98 |
|
| 99 |
send({"name": name, "message": "has left the room"}, to=room)
|
| 100 |
print(f"{name} has left the room {room}")
|