fix(spotify_connect): ignore trailing sink event to prevent playback thrashing (...
authorAndrew Pryde <andrew@rocketpod.co.uk>
Thu, 22 Jan 2026 11:37:21 +0000 (11:37 +0000)
committerGitHub <noreply@github.com>
Thu, 22 Jan 2026 11:37:21 +0000 (12:37 +0100)
commitd4d9e931cd3242d6614965370d64dc2d9b9dbac5
tree727ab38f0e58df55e67d3dc96458c408a9c38f72
parentc0bc48a4722d9209b0beacb3ae6ffcf650fb91c1
fix(spotify_connect): ignore trailing sink event to prevent playback thrashing (#2976)

* fix(spotify_connect): ignore trailing sink event to prevent playback thrashing

The librespot daemon emits a trailing 'sink' event after disconnect.
MA was misinterpreting this as a new playback request, causing the
disconnecting player to immediately re-activate and steal the session back.

This adds a check to ignore 'sink' events if the session is not connected.

* Fix backport pipeline

---------

Co-authored-by: Marvin Schenkel <marvinschenkel@gmail.com>
music_assistant/providers/spotify_connect/__init__.py