summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-01-23 19:16:14 +0100
committerMax Kellermann <max@musicpd.org>2017-01-23 19:16:14 +0100
commit32a64481f22cb69c89ec0a34d5d556225ea61f4f (patch)
tree2331b441adc744b6c110104abcf9eee1defc3be5 /src
parent1776015c6c84a2eb8d74a7568dace2905cfd10b2 (diff)
lib/upnp: fix bad std::chrono cast
libupnp provides seconds, not whatever time unit is used by std::chrono::steady_clock.
Diffstat (limited to 'src')
-rw-r--r--src/lib/upnp/Discovery.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/upnp/Discovery.hxx b/src/lib/upnp/Discovery.hxx
index d50ac4969..131ffb3c6 100644
--- a/src/lib/upnp/Discovery.hxx
+++ b/src/lib/upnp/Discovery.hxx
@@ -62,7 +62,7 @@ class UPnPDeviceDirectory final : UpnpCallback {
DiscoveredTask(const Upnp_Discovery *disco)
:url(disco->Location),
device_id(disco->DeviceId),
- expires(disco->Expires) {}
+ expires(std::chrono::seconds(disco->Expires)) {}
};
/**