private void ClientLoop() { UI.ShowInfo("Connected to Crowd Control"); try { while (Running) { CrowdRequest req = CrowdRequest.Recieve(this, Socket); if (req == null || req.IsKeepAlive()) { continue; } lock (Requests) Requests.Enqueue(req); } } catch (Exception) { UI.ShowError("Disconnected from Crowd Control"); Socket.Close(); } }