summaryrefslogtreecommitdiff
path: root/plugins/lastfm
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-09-01 19:22:26 +0200
committerGravatar waker <wakeroid@gmail.com>2009-09-01 19:22:26 +0200
commit33374d88f19242c10b5370cd17f767580052c09e (patch)
treee2e73d7456ea4692553687dee6ae4c54ca9ddab7 /plugins/lastfm
parent5a19b2184c4cb9fdc0c001152d3a68dec6c31ac7 (diff)
reset lfm session after BADSESS on submission
Diffstat (limited to 'plugins/lastfm')
-rw-r--r--plugins/lastfm/lastfm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/lastfm/lastfm.c b/plugins/lastfm/lastfm.c
index 894ae229..fa1e4308 100644
--- a/plugins/lastfm/lastfm.c
+++ b/plugins/lastfm/lastfm.c
@@ -518,6 +518,9 @@ lfm_send_submissions (void) {
if (!status) {
if (strncmp (lfm_reply, "OK", 2)) {
fprintf (stderr, "submission failed, response:\n%s\n", lfm_reply);
+ if (!strncmp (lfm_reply, "BADSESS", 7)) {
+ lfm_sess[0] = 0;
+ }
}
else {
fprintf (stderr, "submission successful, response:\n%s\n", lfm_reply);