From 1a77729fb7ff194b28c78ba1248d2eeebc3c37c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 3 Apr 2025 18:56:23 +0200 Subject: [PATCH] Fix #13737 (GUI: should not timeout when premiumaddon takes more than 30 seconds) --- gui/checkthread.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/checkthread.cpp b/gui/checkthread.cpp index 3d1a44a9a18..f4803ebef61 100644 --- a/gui/checkthread.cpp +++ b/gui/checkthread.cpp @@ -90,7 +90,10 @@ int CheckThread::executeCommand(std::string exe, std::vector args, } process.start(e, args2); - process.waitForFinished(); + while (!Settings::terminated() && !process.waitForFinished(1000)) { + if (process.state() == QProcess::ProcessState::NotRunning) + break; + } if (redirect == "2>&1") { QString s1 = process.readAllStandardOutput();