diff options
author | waker <wakeroid@gmail.com> | 2009-09-01 19:22:26 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-09-01 19:22:26 +0200 |
commit | 33374d88f19242c10b5370cd17f767580052c09e (patch) | |
tree | e2e73d7456ea4692553687dee6ae4c54ca9ddab7 | |
parent | 5a19b2184c4cb9fdc0c001152d3a68dec6c31ac7 (diff) |
reset lfm session after BADSESS on submission
-rw-r--r-- | plugins/lastfm/lastfm.c | 3 |
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); |