Commit f5dc6bed authored by Ulf Hermann's avatar Ulf Hermann

Android: Don't read from adb logcat while PID isn't known

Otherwise we throw away important parts of the output.

Change-Id: I7ab6989c19660bcbb53d6ff61eda62878044ded2
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 911f6b51
......@@ -183,6 +183,7 @@ void AndroidRunner::checkPID()
emit remoteProcessStarted(-1, -1);
}
m_wasStarted = true;
logcatReadStandardOutput();
}
}
......@@ -357,6 +358,8 @@ void AndroidRunner::logcatReadStandardError()
void AndroidRunner::logcatReadStandardOutput()
{
if (m_processPID == -1)
return;
QList<QByteArray> lines = m_adbLogcatProcess.readAllStandardOutput().split('\n');
// lines always contains at least one item
lines[0].prepend(m_logcat);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment