private void Close() { ConnHelper.Close(mySqlCon); if (clientSocket != null) { clientSocket.Close(); } string key = Util.GetClientKey(ip, port); server.RemoveClient(key); }
private void Quit() { clientSocket.Close(); connHelper.Close(); server.RemoveClient(this); }