aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp/Discovery.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-18 12:56:35 +0100
committerMax Kellermann <max@duempel.org>2014-01-18 12:56:35 +0100
commitb9f02f22c43ae8f86c8b1568cdccffd8793d087f (patch)
treeada701534a8c025c13b1444b2d183244381c6cc5 /src/db/upnp/Discovery.hxx
parentb6356104099c22f63da933d076e1be1191c5be38 (diff)
downloadmpd-b9f02f22c43ae8f86c8b1568cdccffd8793d087f.tar.gz
mpd-b9f02f22c43ae8f86c8b1568cdccffd8793d087f.tar.xz
mpd-b9f02f22c43ae8f86c8b1568cdccffd8793d087f.zip
db/upnp: don't use WorkQueue for _ADVERTISEMENT_BYEBYE
Remove the ContentDirectoryDescriptor right away. Reduces bloat.
Diffstat (limited to 'src/db/upnp/Discovery.hxx')
-rw-r--r--src/db/upnp/Discovery.hxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/db/upnp/Discovery.hxx b/src/db/upnp/Discovery.hxx
index c4704dc7e..9e362c96f 100644
--- a/src/db/upnp/Discovery.hxx
+++ b/src/db/upnp/Discovery.hxx
@@ -49,13 +49,12 @@ class UPnPDeviceDirectory {
* discovery thread.
*/
struct DiscoveredTask {
- bool alive;
std::string url;
std::string deviceId;
int expires; // Seconds valid
- DiscoveredTask(bool _alive, const Upnp_Discovery *disco)
- : alive(_alive), url(disco->Location),
+ DiscoveredTask(const Upnp_Discovery *disco)
+ :url(disco->Location),
deviceId(disco->DeviceId),
expires(disco->Expires) {}
};