From 7de9408a10da81e648cf8ba3f9f58cc76679db9e Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sun, 21 Nov 2010 10:54:55 +0100 Subject: [PATCH] Make sure device is deselected before removing it --- src/player.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/player.c b/src/player.c index 1df7f5e8..4d6c0627 100644 --- a/src/player.c +++ b/src/player.c @@ -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