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:
@@ -207,7 +207,7 @@ socket_t server_connect_to(struct server *server) {
|
||||
if (!server->tunnel_forward) {
|
||||
server->device_socket = net_accept(server->server_socket);
|
||||
} else {
|
||||
Uint32 attempts = 50;
|
||||
Uint32 attempts = 100;
|
||||
Uint32 delay = 100; // ms
|
||||
server->device_socket = connect_to_server(server->local_port, attempts, delay);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user