mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-13 20:32:05 +08:00
@@ -120,7 +120,7 @@ void DownloadController::startDownload(const QString &url)
|
||||
QString downloadDir = "/tmp/spark-store/"; //下载目录
|
||||
QString aria2ConnectionPerServer = "--max-connection-per-server=1"; //每个服务器最大连接数
|
||||
QString aria2ConnectionMax = "--max-concurrent-downloads=16"; //最大同时下载数
|
||||
QString aria2ConnectionTimeout = "--connect-timeout=30"; // 30 秒服务器连接超时
|
||||
QString aria2ConnectionTimeout = "--connect-timeout=5"; // 5 秒服务器连接超时
|
||||
QString aria2MaxRetry = "--max-tries=1"; //设置最大重试次数
|
||||
|
||||
|
||||
|
||||
@@ -198,7 +198,7 @@ void DownloadItem::slotAsyncInstall(int t)
|
||||
for (int i = 0; i < everyOut.size(); i++)
|
||||
{
|
||||
tempOutput = everyOut[i];
|
||||
if (everyOut[i].left(2) == tempOutput.contains("OMG-IT-GOES-WRONG"))
|
||||
if (tempOutput.contains("OMG-IT-GOES-WRONG"))
|
||||
{
|
||||
haveError = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user