aboutsummaryrefslogtreecommitdiff
path: root/launcher/net
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-05-28 18:01:39 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-05-28 18:01:39 +0300
commit737fc1a2a43ba68a640521f187424d0de800ddee (patch)
treedac1a30688941e84e000a89ae1144bd5f567ad9f /launcher/net
parent2f37cb31d990ec26e07760925b0943388d36c7e5 (diff)
parentbdff8591aa945bd193f0fdae613f14dea6fb4809 (diff)
downloadPrismLauncher-737fc1a2a43ba68a640521f187424d0de800ddee.tar.gz
PrismLauncher-737fc1a2a43ba68a640521f187424d0de800ddee.tar.bz2
PrismLauncher-737fc1a2a43ba68a640521f187424d0de800ddee.zip
Merge branch 'Fix_Assert' of github.com:Trial97/PrismLauncher into develop
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/net')
-rw-r--r--launcher/net/Download.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/net/Download.cpp b/launcher/net/Download.cpp
index cd3fcc85..7f8d3a06 100644
--- a/launcher/net/Download.cpp
+++ b/launcher/net/Download.cpp
@@ -134,11 +134,14 @@ void Download::executeTask()
request.setRawHeader("Authorization", token.toUtf8());
}
+#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
+ request.setTransferTimeout();
+#endif
+
m_last_progress_time = m_clock.now();
m_last_progress_bytes = 0;
QNetworkReply* rep = m_network->get(request);
-
m_reply.reset(rep);
connect(rep, &QNetworkReply::downloadProgress, this, &Download::downloadProgress);
connect(rep, &QNetworkReply::finished, this, &Download::downloadFinished);