aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/scrobbler/scrobbler2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General/scrobbler/scrobbler2.cpp')
-rw-r--r--src/plugins/General/scrobbler/scrobbler2.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/General/scrobbler/scrobbler2.cpp b/src/plugins/General/scrobbler/scrobbler2.cpp
index 2097d6696..f00340507 100644
--- a/src/plugins/General/scrobbler/scrobbler2.cpp
+++ b/src/plugins/General/scrobbler/scrobbler2.cpp
@@ -261,9 +261,14 @@ void Scrobbler2::processResponse(QNetworkReply *reply)
m_songCache.removeFirst ();
}
if (!m_songCache.isEmpty()) //submit remaining songs
+ {
submit();
- else
+ }
+ else
+ {
+ syncCache(); // update the cache file to reflect the empty cache
updateMetaData();
+ }
}
else if(error_code == "9") //invalid session key
{