Increase "adb forward" connection attempts
5 seconds might not be sufficient: <https://github.com/Genymobile/scrcpy/issues/213> Increase to 10 seconds (it does not harm).
This commit is contained in:
parent
fca806e095
commit
8793c104ee
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ socket_t server_connect_to(struct server *server) {
|
||||||
if (!server->tunnel_forward) {
|
if (!server->tunnel_forward) {
|
||||||
server->device_socket = net_accept(server->server_socket);
|
server->device_socket = net_accept(server->server_socket);
|
||||||
} else {
|
} else {
|
||||||
Uint32 attempts = 50;
|
Uint32 attempts = 100;
|
||||||
Uint32 delay = 100; // ms
|
Uint32 delay = 100; // ms
|
||||||
server->device_socket = connect_to_server(server->local_port, attempts, delay);
|
server->device_socket = connect_to_server(server->local_port, attempts, delay);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue