mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-04 02:12:21 +08:00
fix: waitforfinished
This commit is contained in:
parent
198384c552
commit
cdb4fc05a1
@ -176,11 +176,9 @@ void DownloadController::startDownload(const QString &url)
|
||||
|
||||
auto pidNumber = cmd->processId();
|
||||
this->pidNumber = pidNumber;
|
||||
int statusSum = 0;
|
||||
while (statusSum > -20)
|
||||
while (cmd->waitForFinished(-1))
|
||||
{
|
||||
auto status = cmd->waitForFinished() - 1;
|
||||
statusSum += status;
|
||||
continue;
|
||||
}
|
||||
emit downloadFinished();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user