mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-14 09:50:06 +00:00
Ensure initAdb() waits until adb is ready, rather than causing UI stalls
This commit is contained in:
1 file changed
+7
-1
@@ -341,7 +341,13 @@ void initAdb()
|
||||
"configure your SDK location");
|
||||
}
|
||||
|
||||
Process::LaunchProcess(adb.c_str(), workdir.c_str(), "start-server", true);
|
||||
Process::ProcessResult res = {};
|
||||
Process::LaunchProcess(adb.c_str(), workdir.c_str(), "start-server", true, &res);
|
||||
|
||||
if(res.strStdout.find("daemon"))
|
||||
{
|
||||
RDCLOG("Started adb server");
|
||||
}
|
||||
}
|
||||
void shutdownAdb()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user