From: Marcel van der Veldt Date: Sun, 2 Nov 2025 15:53:55 +0000 (+0100) Subject: Fix small (potential) recursion issue X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=f75412dca3286d93246f2afae56ff7583b7ccf55;p=music-assistant-server.git Fix small (potential) recursion issue --- 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 (