Skip to content

Commit fd9304e

Browse files
authored
Fix #13737 (GUI: should not timeout when premiumaddon takes more than 30 seconds) (danmar#7418)
1 parent 5398426 commit fd9304e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gui/checkthread.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ int CheckThread::executeCommand(std::string exe, std::vector<std::string> args,
9090
}
9191

9292
process.start(e, args2);
93-
process.waitForFinished();
93+
while (!Settings::terminated() && !process.waitForFinished(1000)) {
94+
if (process.state() == QProcess::ProcessState::NotRunning)
95+
break;
96+
}
9497

9598
if (redirect == "2>&1") {
9699
QString s1 = process.readAllStandardOutput();

0 commit comments

Comments
 (0)