From 884de5187cb43f7cd5e33373329338c12db0fb15 Mon Sep 17 00:00:00 2001 From: Realself-Ma <52282764+Realself-Ma@users.noreply.github.com> Date: Sun, 2 Aug 2020 16:16:39 +0800 Subject: [PATCH] Update factory.cpp --- factory.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/factory.cpp b/factory.cpp index 0c2715a..097396f 100755 --- a/factory.cpp +++ b/factory.cpp @@ -118,7 +118,6 @@ QTcpSocket* Factory::CreateQTcpSocket(QString ServerIp,int ServerPort) QHostAddress* serverIP = new QHostAddress(); QString ip = ServerIp; serverIP->setAddress(ip); - serverIP->setAddress(ip); tcpSocket->connectToHost(*serverIP, ServerPort); return tcpSocket; }