Skip to content

Commit

Permalink
Prevent duplicate multirooms
Browse files Browse the repository at this point in the history
  • Loading branch information
silamon committed Oct 3, 2024
1 parent 1b64147 commit 05bf328
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/linkplay/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ async def discover_multirooms(self) -> None:
"""Attempts to discover multirooms on the local network."""

# Find and update existing multirooms
multirooms = [bridge.multiroom for bridge in self.bridges if bridge.multiroom]
multirooms = [
bridge.multiroom
for bridge in self.bridges
if bridge.multiroom and bridge.multiroom.leader is bridge
]

removed_multirooms = []
for multiroom in multirooms:
Expand Down

0 comments on commit 05bf328

Please sign in to comment.