diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-09-02 00:25:40 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-09-02 00:25:40 +0200 |
commit | f8e8414d544f1227e86099146bba903c9082d09e (patch) | |
tree | a0983c2a5a17feda4c2f813d32d0b98111463176 /logic/lists | |
parent | 78e278c1e33e39eb29a26a976b19ea6a8150bfff (diff) | |
download | MultiMC-f8e8414d544f1227e86099146bba903c9082d09e.tar MultiMC-f8e8414d544f1227e86099146bba903c9082d09e.tar.gz MultiMC-f8e8414d544f1227e86099146bba903c9082d09e.tar.lz MultiMC-f8e8414d544f1227e86099146bba903c9082d09e.tar.xz MultiMC-f8e8414d544f1227e86099146bba903c9082d09e.zip |
Speed up the downloads. Massively.
Diffstat (limited to 'logic/lists')
-rw-r--r-- | logic/lists/LwjglVersionList.cpp | 2 | ||||
-rw-r--r-- | logic/lists/MinecraftVersionList.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/logic/lists/LwjglVersionList.cpp b/logic/lists/LwjglVersionList.cpp index 0e7b5a34..c0854628 100644 --- a/logic/lists/LwjglVersionList.cpp +++ b/logic/lists/LwjglVersionList.cpp @@ -91,7 +91,7 @@ void LWJGLVersionList::loadList() Q_ASSERT_X(!m_loading, "loadList", "list is already loading (m_loading is true)"); setLoading(true); - auto & worker = NetWorker::spawn(); + auto & worker = NetWorker::qnam(); reply = worker.get(QNetworkRequest(QUrl(RSS_URL))); connect(reply, SIGNAL(finished()), SLOT(netRequestComplete())); } diff --git a/logic/lists/MinecraftVersionList.cpp b/logic/lists/MinecraftVersionList.cpp index 80b4fbc0..4444f5b0 100644 --- a/logic/lists/MinecraftVersionList.cpp +++ b/logic/lists/MinecraftVersionList.cpp @@ -151,7 +151,7 @@ MCVListLoadTask::~MCVListLoadTask() void MCVListLoadTask::executeTask() { setStatus("Loading instance version list..."); - auto & worker = NetWorker::spawn(); + auto & worker = NetWorker::qnam(); vlistReply = worker.get(QNetworkRequest(QUrl(QString(MCVLIST_URLBASE) + "versions.json"))); connect(vlistReply, SIGNAL(finished()), this, SLOT(list_downloaded())); } |