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:
Romain Vimont 2018-08-09 18:22:42 +02:00
parent fca806e095
commit 8793c104ee

View file

@ -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);
} }