mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 00:05:03 -05:00
Make sure device is deselected before removing it
This commit is contained in:
parent
78df98ba35
commit
7de9408a10
@ -1205,6 +1205,10 @@ device_remove(struct raop_device *dev)
|
||||
|
||||
DPRINTF(E_DBG, L_PLAYER, "Removing AirTunes device %s; stopped advertising\n", dev->name);
|
||||
|
||||
/* Make sure device isn't selected anymore */
|
||||
if (dev->selected)
|
||||
speaker_deselect_raop(dev);
|
||||
|
||||
if (!prev)
|
||||
dev_list = dev->next;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user