From 32a64481f22cb69c89ec0a34d5d556225ea61f4f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 23 Jan 2017 19:16:14 +0100 Subject: lib/upnp: fix bad std::chrono cast libupnp provides seconds, not whatever time unit is used by std::chrono::steady_clock. --- src/lib/upnp/Discovery.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)) {} }; /** -- cgit v1.2.3