From f75412dca3286d93246f2afae56ff7583b7ccf55 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sun, 2 Nov 2025 16:53:55 +0100 Subject: [PATCH] Fix small (potential) recursion issue --- music_assistant/models/player.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/music_assistant/models/player.py b/music_assistant/models/player.py index b13679b9..516ee6be 100644 --- a/music_assistant/models/player.py +++ b/music_assistant/models/player.py @@ -934,7 +934,9 @@ class Player(ABC): """ # if the player is grouped/synced, use the current_media of the group/parent player if parent_player_id := (self.active_group or self.synced_to): - if parent_player := self.mass.players.get(parent_player_id): + if parent_player_id != self.player_id and ( + parent_player := self.mass.players.get(parent_player_id) + ): return cast("PlayerMedia | None", parent_player.current_media) # if a pluginsource is currently active, return those details if ( -- 2.34.1