AndroidAvdManager: Get rid of no-op call to QtcProcess::terminate()

Calling QtcProcess::terminate() is a task for implicit ProcessReaper.
Delete the process instead.

Change-Id: I92fe34a18e15ca95f6bab2b7932faeee8b92621d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Jarek Kobus
2022-03-25 18:34:54 +01:00
parent dcc61b854a
commit 65f5fde2e6

View File

@@ -162,14 +162,6 @@ static CreateAvdInfo createAvdCommand(const AndroidConfig &config, const CreateA
} }
} }
// Kill the running process.
if (proc.state() != QProcess::NotRunning) {
proc.terminate();
if (!proc.waitForFinished(3000))
proc.kill();
}
QTC_CHECK(proc.state() == QProcess::NotRunning);
result.error = errorOutput; result.error = errorOutput;
return result; return result;
} }