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);
}
}
------
------
paul aarmanPosted May 25, 2013, 9:03 PM
totaly works
vulpes im impress at how good you are at making code work without knowing the whole context of the codes
paul aarmanPosted May 25, 2013, 8:58 PM
client.mNetConnection.Connect(connection.mRoomRTMP, param);
when it cant connect
VulpesPosted May 25, 2013, 7:37 PM
paul aarmanPosted May 25, 2013, 7:04 PM
where i need to put it in
VulpesPosted May 25, 2013, 5:51 PM
You'll therefore need to move its declaration outside the try/catch for it to be accessible in both blocks.
paul aarmanPosted May 25, 2013, 4:19 PM