From 0d83a188cc70ba8e474f165aa7515786c72db708 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Mon, 2 Jun 2008 21:46:23 +0000 Subject: [PATCH] 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 --- rbutil/rbutilqt/httpget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rbutil/rbutilqt/httpget.cpp b/rbutil/rbutilqt/httpget.cpp index 488155610d..9c102f8c2c 100644 --- a/rbutil/rbutilqt/httpget.cpp +++ b/rbutil/rbutilqt/httpget.cpp @@ -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())