paul aarman

paul aarman

  • NA
  • 17
  • 3.1k

socketexpection unhandle

May 25 2013 4:18 PM
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);

                            }

                           
                            


                        }




------







Answers (6)