diff options
author | Max Kellermann <max@duempel.org> | 2014-01-18 16:28:12 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-18 16:28:12 +0100 |
commit | fab6cbed7554ad83df3d70cf24a94a178fe406ff (patch) | |
tree | 660fdd95cdac3ad1af9ee945c63cd31466367e2b /src/db/upnp/Discovery.cxx | |
parent | 051eede1edda157f7354c9ad468e8884a8987979 (diff) | |
download | mpd-fab6cbed7554ad83df3d70cf24a94a178fe406ff.tar.gz mpd-fab6cbed7554ad83df3d70cf24a94a178fe406ff.tar.xz mpd-fab6cbed7554ad83df3d70cf24a94a178fe406ff.zip |
db/upnp/Discovery: eliminate attribute "last_seen"
Diffstat (limited to '')
-rw-r--r-- | src/db/upnp/Discovery.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/upnp/Discovery.cxx b/src/db/upnp/Discovery.cxx index f07751956..085e5c336 100644 --- a/src/db/upnp/Discovery.cxx +++ b/src/db/upnp/Discovery.cxx @@ -170,7 +170,7 @@ UPnPDeviceDirectory::expireDevices(Error &error) for (auto it = directories.begin(); it != directories.end();) { - if (now - it->second.last_seen > it->second.expires) { + if (now > it->second.expires) { it = directories.erase(it); didsomething = true; } else { |