summaryrefslogtreecommitdiffstats
path: root/logic/net/HttpMetaCache.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-09-08 15:59:50 +0200
committerPetr Mrázek <peterix@gmail.com>2013-09-08 15:59:50 +0200
commit7e1cf22ce61e8a5450e5dc74993e471c20b2742f (patch)
tree0cb28537b83974626cf30a71a1b4c2fe65f62891 /logic/net/HttpMetaCache.cpp
parent6bea4ec988b7caeac63353fb9d2a354f2fd47dad (diff)
downloadMultiMC-7e1cf22ce61e8a5450e5dc74993e471c20b2742f.tar
MultiMC-7e1cf22ce61e8a5450e5dc74993e471c20b2742f.tar.gz
MultiMC-7e1cf22ce61e8a5450e5dc74993e471c20b2742f.tar.lz
MultiMC-7e1cf22ce61e8a5450e5dc74993e471c20b2742f.tar.xz
MultiMC-7e1cf22ce61e8a5450e5dc74993e471c20b2742f.zip
Use youtrack for bugs
Diffstat (limited to 'logic/net/HttpMetaCache.cpp')
-rw-r--r--logic/net/HttpMetaCache.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/logic/net/HttpMetaCache.cpp b/logic/net/HttpMetaCache.cpp
index 50a1136e..46801ab3 100644
--- a/logic/net/HttpMetaCache.cpp
+++ b/logic/net/HttpMetaCache.cpp
@@ -36,12 +36,6 @@ HttpMetaCache::~HttpMetaCache()
SaveNow();
}
-void HttpMetaCache::SaveEventually()
-{
- saveBatchingTimer.stop();
- saveBatchingTimer.start(30000);
-}
-
MetaEntryPtr HttpMetaCache::getEntry ( QString base, QString resource_path )
{
// no base. no base path. can't store
@@ -197,6 +191,13 @@ void HttpMetaCache::Load()
}
}
+void HttpMetaCache::SaveEventually()
+{
+ // reset the save timer
+ saveBatchingTimer.stop();
+ saveBatchingTimer.start(30000);
+}
+
void HttpMetaCache::SaveNow()
{
QSaveFile tfile(m_index_file);