forward时防止早连接

dev
Barry 7 years ago
parent 3d74d869a7
commit 79b91d59f8

@ -165,7 +165,9 @@ bool Server::connectTo()
} }
// device server need time to start // device server need time to start
QTimer::singleShot(600, this, [this](){ // TODO:电脑配置太低的话这里有可能时间不够导致连接太早安卓监听socket还没有建立
// 后续研究其他办法
QTimer::singleShot(1000, this, [this](){
QString deviceName; QString deviceName;
QSize deviceSize; QSize deviceSize;
bool success = false; bool success = false;

Loading…
Cancel
Save