forked from qt-creator/qt-creator
Android: Lower the time-out for license checks
An issue in SynchronousProcess causes a time-out when the process output is not terminated with a \n or \r. This workaround lowers the timeout from 600 to 4 so that the unterminated output gets consumed nevertheless, and the user needs to wait only 4 seconds for that. Task-number: QTCREATORBUG-25667 Change-Id: I40f3053c7c4948c27003e9ec73d00a9d660024a4 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
@@ -1014,10 +1014,12 @@ void AndroidSdkManagerPrivate::checkPendingLicense(SdkCmdFutureInterface &fi)
|
||||
AndroidSdkManager::OperationOutput result;
|
||||
result.type = AndroidSdkManager::LicenseCheck;
|
||||
const QStringList args = {"--licenses", sdkRootArg(m_config)};
|
||||
if (!fi.isCanceled())
|
||||
sdkManagerCommand(m_config, args, m_sdkManager, fi, result, 100.0);
|
||||
else
|
||||
if (!fi.isCanceled()) {
|
||||
const int timeOutS = 4; // Short timeout as workaround for QTCREATORBUG-25667
|
||||
sdkManagerCommand(m_config, args, m_sdkManager, fi, result, 100.0, true, timeOutS);
|
||||
} else {
|
||||
qCDebug(sdkManagerLog) << "Update: Operation cancelled before start";
|
||||
}
|
||||
|
||||
fi.reportResult(result);
|
||||
fi.setProgressValue(100);
|
||||
|
||||
Reference in New Issue
Block a user