summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/httpget.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-03-21 21:04:24 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-03-21 21:04:24 +0000
commite8f25d91e8d89b3acc96aad3a81b684ea71443a8 (patch)
treef136d6d4b28afdc2b7ae75c28df92c29157d25fa /rbutil/rbutilqt/base/httpget.cpp
parente70f24c7d7df980226bd60cd31ef913a83cc5aa8 (diff)
downloadrockbox-e8f25d91e8d89b3acc96aad3a81b684ea71443a8.tar.gz
rockbox-e8f25d91e8d89b3acc96aad3a81b684ea71443a8.tar.bz2
rockbox-e8f25d91e8d89b3acc96aad3a81b684ea71443a8.zip
Don't ignore errors when finishing a HTTP request for cached request as that is already done. Fixes a wrong status reported when an error occured.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20435 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/httpget.cpp')
-rw-r--r--rbutil/rbutilqt/base/httpget.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/rbutil/rbutilqt/base/httpget.cpp b/rbutil/rbutilqt/base/httpget.cpp
index bd15de41a9..5aabc5b29c 100644
--- a/rbutil/rbutilqt/base/httpget.cpp
+++ b/rbutil/rbutilqt/base/httpget.cpp
@@ -255,7 +255,7 @@ void HttpGet::getFileFinish()
}
m_response = 200; // fake "200 OK" HTTP response
m_cached = true;
- httpDone(false); // we're done now. Fake http "done" signal.
+ httpDone(false); // we're done now. Handle http "done" signal.
return;
}
else {
@@ -313,10 +313,6 @@ void HttpGet::httpDone(bool error)
c.close();
}
- // if cached file found and cache enabled ignore http errors
- if(m_usecache && m_cached && !http.hasPendingRequests()) {
- error = false;
- }
// take care of concurring requests. If there is still one running,
// don't emit done(). That request will call this slot again.
if(http.currentId() == 0 && !http.hasPendingRequests())