forked from qt-creator/qt-creator
Increase timeout for update check
10 seconds are not enough for retrieving all the information from the servers. Change-Id: Ic1372a8b558f1c1f80ff6703b2d70ee92dd8652c Reviewed-by: Antti Kokko <antti.kokko@qt.io>
This commit is contained in:
@@ -129,6 +129,7 @@ void UpdateInfoPlugin::startCheckForUpdates()
|
||||
connect(d->m_checkUpdatesCommand, &ShellCommand::stdOutText, this, &UpdateInfoPlugin::collectCheckForUpdatesOutput);
|
||||
connect(d->m_checkUpdatesCommand, &ShellCommand::finished, this, &UpdateInfoPlugin::checkForUpdatesFinished);
|
||||
d->m_checkUpdatesCommand->addJob(Utils::FileName(QFileInfo(d->m_maintenanceTool)), QStringList(QLatin1String("--checkupdates")),
|
||||
60 * 3, // 3 minutes timeout
|
||||
/*workingDirectory=*/QString(),
|
||||
[](int /*exitCode*/) { return Utils::SynchronousProcessResponse::Finished; });
|
||||
d->m_checkUpdatesCommand->execute();
|
||||
|
||||
Reference in New Issue
Block a user