mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-02 12:26:48 +01:00
Remove pending playlist requests in SpotifyClient if sp_session_player_load failed as well.
This commit is contained in:
parent
fe7bc917de
commit
f34734443b
@ -948,6 +948,9 @@ void SpotifyClient::TryPlaybackAgain(const PendingPlaybackRequest& req) {
|
|||||||
SendPlaybackError("Spotify playback error: " +
|
SendPlaybackError("Spotify playback error: " +
|
||||||
QString::fromUtf8(sp_error_message(error)));
|
QString::fromUtf8(sp_error_message(error)));
|
||||||
sp_link_release(req.link_);
|
sp_link_release(req.link_);
|
||||||
|
|
||||||
|
// Remove this from the pending list now
|
||||||
|
pending_playback_requests_.removeAll(req);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user