aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2013-08-29 05:04:56 +0200
committerKahrl <kahrl@gmx.net>2013-12-13 18:05:10 +0100
commit0ea3e6dbe2288854d9d4a971fc6539c2e740a95a (patch)
tree2bd1e8485e0fe14cc69fefb8cae66a76f1086aee /src/util
parent67bf7130ce3f1780a432ae03eabdec3118ecab70 (diff)
downloadminetest-0ea3e6dbe2288854d9d4a971fc6539c2e740a95a.tar.gz
minetest-0ea3e6dbe2288854d9d4a971fc6539c2e740a95a.tar.bz2
minetest-0ea3e6dbe2288854d9d4a971fc6539c2e740a95a.zip
Implement httpfetch module and initialize it from main()
Add curl_parallel_limit setting that will replace media_fetch_threads in a later commit. Fix a typo in MutexedQueue::pop_back() that made it impossible to compile code that used this function. (Noticed this while implementing httpfetch.)
Diffstat (limited to 'src/util')
-rw-r--r--src/util/container.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/container.h b/src/util/container.h
index fdd76cc59..e83c3cd37 100644
--- a/src/util/container.h
+++ b/src/util/container.h
@@ -297,7 +297,8 @@ public:
if(!m_list.empty())
{
- typename std::list<T>::iterator last = m_list.back();
+ typename std::list<T>::iterator last = m_list.end();
+ last--;
T t = *last;
m_list.erase(last);
return t;