Not force closing all rooms may be a good idea

This commit is contained in:
2023-03-22 20:50:37 +01:00
parent 6baefc875b
commit 8debac4f70
4 changed files with 65 additions and 14 deletions

View File

@@ -34,7 +34,10 @@ public class RoomManager : IRoomManager
public void RemoveAllRooms()
{
Rooms.Clear();
foreach (var room in Rooms.Where(room => room.Value.IsEmpty()))
{
Rooms.Remove(room.Key);
}
}
}