1
0
Fork 0
forked from len0rd/rockbox

Don't invalidate the server timestamp variable when download finishes.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17681 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2008-06-02 21:46:23 +00:00
parent 44bc9157ee
commit 0d83a188cc

View file

@ -178,6 +178,7 @@ bool HttpGet::getFile(const QUrl &url)
qDebug() << "[HTTP] Error: URL has no path" << endl;
return false;
}
m_serverTimestamp = QDateTime();
// if no output file was set write to buffer
if(!outputToBuffer) {
if (!outputFile->open(QIODevice::ReadWrite)) {
@ -304,7 +305,6 @@ void HttpGet::httpDone(bool error)
c.close();
}
m_serverTimestamp = QDateTime();
// 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())