mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 03:25:02 +00:00
forward时防止早连接
This commit is contained in:
parent
3d74d869a7
commit
79b91d59f8
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue