mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 11:35:56 +00:00
fix:mac编译不过
This commit is contained in:
parent
503e0f22c5
commit
e4037064a8
2 changed files with 2 additions and 1 deletions
|
@ -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
BIN
screenshot/win.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 MiB |
Loading…
Add table
Reference in a new issue