private void EndAccept(IAsyncResult ar) { new Thread(() => DebugServer.Wait(_listener.EndAcceptSocket(ar))).Start(); _listener.BeginAcceptSocket(EndAccept, null); }