forward时防止早连接

This commit is contained in:
Barry 2019-02-25 22:35:08 +08:00
parent 3d74d869a7
commit 79b91d59f8

View file

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