shubhajit07 commited on
Commit
2027174
1 Parent(s): 29089cf
Files changed (1) hide show
  1. main.py +2 -2
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
- del rooms[room]
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}")