Remove pending playlist requests in SpotifyClient if sp_session_player_load failed as well.

This commit is contained in:
Andreas 2015-03-14 15:26:44 +01:00
parent fe7bc917de
commit f34734443b
1 changed files with 3 additions and 0 deletions

View File

@ -948,6 +948,9 @@ void SpotifyClient::TryPlaybackAgain(const PendingPlaybackRequest& req) {
SendPlaybackError("Spotify playback error: " +
QString::fromUtf8(sp_error_message(error)));
sp_link_release(req.link_);
// Remove this from the pending list now
pending_playback_requests_.removeAll(req);
return;
}