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