protected override void run() { while (running) { try { Socket socket = Listener.AcceptSocket(); if (socket.Connected) { WebRequests.WaitOne(); new Thread(() => { ControlServerRequest request = new ControlServerRequest(socket, this); openSockets.Add(request); request.start(); }).Start(); } } catch { } } }