forked from qt-creator/qt-creator
Android: Don't call waitForFinished() recursively
Change-Id: Ic49d040643cfb8f871e24fc617d15c72167e1d3c Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -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));
|
||||
});
|
||||
|
Reference in New Issue
Block a user