forked from qt-creator/qt-creator
Process: Remove no-op calls to setTimeoutS()
The timeout is only used with runBlocking(), otherwise it's no-op. Change-Id: I7d81e4a73c7182bd19c435c112a2d64c3f40ba2e Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -477,7 +477,6 @@ void AndroidDeviceManager::eraseAvd(const IDevice::Ptr &device, QWidget *parent)
|
|||||||
const AndroidConfig &config = m_avdManager.config();
|
const AndroidConfig &config = m_avdManager.config();
|
||||||
const CommandLine command(config.avdManagerToolPath(), {"delete", "avd", "-n", name});
|
const CommandLine command(config.avdManagerToolPath(), {"delete", "avd", "-n", name});
|
||||||
qCDebug(androidDeviceLog).noquote() << "Running command (removeAvd):" << command.toUserOutput();
|
qCDebug(androidDeviceLog).noquote() << "Running command (removeAvd):" << command.toUserOutput();
|
||||||
m_removeAvdProcess->setTimeoutS(5);
|
|
||||||
m_removeAvdProcess->setEnvironment(config.toolsEnvironment());
|
m_removeAvdProcess->setEnvironment(config.toolsEnvironment());
|
||||||
m_removeAvdProcess->setCommand(command);
|
m_removeAvdProcess->setCommand(command);
|
||||||
connect(m_removeAvdProcess.get(), &Process::done, this, [this, device] {
|
connect(m_removeAvdProcess.get(), &Process::done, this, [this, device] {
|
||||||
|
@@ -3476,7 +3476,6 @@ QFuture<QVersionNumber> GitClient::gitVersion() const
|
|||||||
proc->deleteLater();
|
proc->deleteLater();
|
||||||
});
|
});
|
||||||
|
|
||||||
proc->setTimeoutS(vcsTimeoutS());
|
|
||||||
proc->setEnvironment(processEnvironment());
|
proc->setEnvironment(processEnvironment());
|
||||||
proc->setCommand({newGitBinary, {"--version"}});
|
proc->setCommand({newGitBinary, {"--version"}});
|
||||||
proc->start();
|
proc->start();
|
||||||
|
Reference in New Issue
Block a user