mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-24 14:45:53 +00:00
Make android timeouts even more ludicrously generous
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user