openspotify icon indicating copy to clipboard operation
openspotify copied to clipboard

Disconnection or logout can leave pending requests and channels

Open noahwilliamsson opened this issue 15 years ago • 0 comments

When we're disconnected (because of errors or because of logout) there might be several requests that are in a pending state.

  • Login might be processed
  • Playlists might be retrieved
  • Tracks/artists/albums metadata might be retrieved

These requests should either be aborted (if in REQ_STATE_RUNNING) or postponed (in REQ_STATE_NEW).

Otherwise corruption or NULL pointer dereferences might occur due to sp_session::login or sp_session::playlist_ctx being stale

noahwilliamsson avatar Aug 09 '09 19:08 noahwilliamsson