Android: Don't call waitForFinished() recursively

Change-Id: Ic49d040643cfb8f871e24fc617d15c72167e1d3c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Jarek Kobus
2024-04-19 15:48:08 +02:00
parent 0aa5b86300
commit 592762527e

View File

@@ -126,10 +126,8 @@ static void sdkManagerCommand(const AndroidConfig &config, const QStringList &ar
bool assertionFound = false;
proc.setStdOutCallback([offset, progressQuota, &proc, &assertionFound, &promise](const QString &out) {
int progressPercent = parseProgress(out, assertionFound);
if (assertionFound) {
if (assertionFound)
proc.stop();
proc.waitForFinished();
}
if (progressPercent != -1)
promise.setProgressValue(offset + qRound((progressPercent / 100.0) * progressQuota));
});