im trying to add a catch to this but it wont let me add it
heres my code
try
{
bool Flag = false;
foreach (Client client in Clients.ToList())
{
if (client.roomName == connection.mRoomName)
{
Flag = true;
break;
}
}
if (!Flag)
{
Client client = new Client(connection.mRoomName);
Thread thd = new Thread(() => { client.mNetConnection.Connect(connection.mRoomRTMP, param); });
client.SetHandler(thd);
thd.Start();
Clients.Add(client);
}
}
------