Make android timeouts even more ludicrously generous

This commit is contained in:
baldurk
2023-05-05 12:28:35 +01:00
parent f413d4d084
commit d891a31c90
+4 -3
View File
@@ -181,8 +181,9 @@ int GetCurrentPID(const rdcstr &deviceID, const rdcstr &processName)
RDCLOG("Getting PID from device %s for process '%s'", deviceID.c_str(), processName.c_str());
}
// try 5 times, 200ms apart to find the pid
for(int i = 0; i < 5; i++)
// try 15 times, 200ms apart to find the pid, for a total of 3 seconds timeout waiting for the
// process to even be alive
for(int i = 0; i < 15; i++)
{
Process::ProcessResult pidOutput =
adbExecCommand(deviceID, StringFormat::Fmt("shell ps -A | grep %s", processName.c_str()));
@@ -1094,7 +1095,7 @@ struct AndroidController : public IDeviceProtocolHandler
});
// allow the package to start and begin listening before we return
Threading::Sleep(5000);
Threading::Sleep(8000);
return result;
}