mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-13 12:22:05 +08:00
chore:增加下载超时报错
This commit is contained in:
@@ -12,7 +12,13 @@ DownloadManager::~DownloadManager()
|
||||
{
|
||||
if (m_process->state() == QProcess::Running) {
|
||||
m_process->kill();
|
||||
m_process->waitForFinished();
|
||||
// 原代码
|
||||
// m_process->waitForFinished();
|
||||
|
||||
// 修改后增加超时处理
|
||||
if (!m_process->waitForFinished(5000)) {
|
||||
qWarning() << "进程终止超时";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user