fix:mac编译不过

This commit is contained in:
Barry 2019-06-22 16:16:26 +08:00
parent 503e0f22c5
commit e4037064a8
2 changed files with 2 additions and 1 deletions

View file

@ -333,6 +333,8 @@ void Server::onConnectTimer()
bool success = false;
VideoSocket* videoSocket = new VideoSocket();
QTcpSocket *controlSocket = new QTcpSocket();
videoSocket->connectToHost(QHostAddress::LocalHost, m_params.localPort);
if (!videoSocket->waitForConnected(1000)) {
// 连接到adb很快的这里失败不重试
@ -341,7 +343,6 @@ void Server::onConnectTimer()
goto result;
}
QTcpSocket *controlSocket = new QTcpSocket();
controlSocket->connectToHost(QHostAddress::LocalHost, m_params.localPort);
if (!controlSocket->waitForConnected(1000)) {
// 连接到adb很快的这里失败不重试

BIN
screenshot/win.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB