# this player has become the active spotify connect player
# we need to start the playback
if event_name in ("sink", "playing") and (not self._source_details.in_use_by):
+ # If we receive a 'sink' event but we are not officially connected
+ # (i.e. we just disconnected), ignore it to prevent accidental
+ # re-activation of this player (trailing event from dying session).
+ if event_name == "sink" and not self._connected_spotify_username:
+ self.logger.debug("Ignoring trailing sink event while disconnected")
+ return Response()
+
# Check for matching Spotify provider now that playback is starting
# This ensures the Spotify music provider has had time to initialize
if not self._connected_spotify_username or not self._spotify_provider: