Ensure initAdb() waits until adb is ready, rather than causing UI stalls

This commit is contained in:
baldurk
2019-04-22 18:39:52 +01:00
parent 9a94ec03cd
commit b0f975714e
+7 -1
View File
@@ -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()
{