diff --git a/ext/clementine-spotifyblob/spotifyclient.cpp b/ext/clementine-spotifyblob/spotifyclient.cpp index d9135bbc5..4527bc24b 100644 --- a/ext/clementine-spotifyblob/spotifyclient.cpp +++ b/ext/clementine-spotifyblob/spotifyclient.cpp @@ -942,9 +942,6 @@ void SpotifyClient::TryPlaybackAgain(const PendingPlaybackRequest& req) { return; } - // Remove this from the pending list now - pending_playback_requests_.removeAll(req); - // Load the track sp_error error = sp_session_player_load(session_, req.track_); if (error != SP_ERROR_OK) { @@ -965,6 +962,9 @@ void SpotifyClient::TryPlaybackAgain(const PendingPlaybackRequest& req) { sp_session_player_play(session_, true); sp_link_release(req.link_); + + // Remove this from the pending list now + pending_playback_requests_.removeAll(req); } void SpotifyClient::SendPlaybackError(const QString& error) {