forked from qt-creator/qt-creator
Android: Remove various waitForFinished(-1)
That waits forever. For processes that should finish in a reasonable time, we should not wait forever. I changed most of the waits to 5s, all of those functions do handle a failed waitForFinished. I doubt that all callers do also handle it correctly, but that's probably still better than waiting forever. Task-number: QTCREATORBUG-10868 Change-Id: I368a911f19a4f81d71b24cf9d58796bd99878040 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
@@ -281,7 +281,7 @@ unsigned int AndroidDeployStep::remoteModificationTime(const QString &fullDestin
|
||||
QStringList arguments = AndroidDeviceInfo::adbSelector(m_deviceSerialNumber);
|
||||
arguments << QLatin1String("ls") << destination;
|
||||
process.start(AndroidConfigurations::instance().adbToolPath().toString(), arguments);
|
||||
process.waitForFinished(-1);
|
||||
process.waitForFinished(5000);
|
||||
if (process.error() != QProcess::UnknownError
|
||||
|| process.exitCode() != 0)
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user