mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 22:46:02 -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);
|
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)
|
if (!prev)
|
||||||
dev_list = dev->next;
|
dev_list = dev->next;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user