public void ChangeClientToDoctor(TcpClient client, ClientThread clth) { clients.Remove(clth); doctor = new DoctorThread(client, this); Thread thread = new Thread(new ThreadStart(doctor.run)); thread.IsBackground = true; thread.Start(); }
public void ChangeClientToDoctor(TcpClient client, ClientThread clth) { clients.Remove(clth); doctor = new DoctorThread(client, this); Thread thread = new Thread(new ThreadStart(doctor.run)); thread.IsBackground = true; thread.Start(); foreach (NetCommand command in backlog) { SendToDoctor(command); Thread.Sleep(5); } }
public void ChangeClientToDoctor(TcpClient client, ClientThread clth) { clients.Remove(clth); doctor = new DoctorThread(client, this); Thread thread = new Thread(new ThreadStart(doctor.run)); thread.IsBackground = true; thread.Start(); foreach(NetCommand command in backlog) { SendToDoctor(command); Thread.Sleep(5); } }