From 71928b473e41f710934790bf2609a2e6ec772297 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 22 Jan 2014 21:48:33 +0100 Subject: db/upnp/Discovery: unlock mutex before deleting DiscoveredTask --- src/db/upnp/Discovery.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/db/upnp') diff --git a/src/db/upnp/Discovery.cxx b/src/db/upnp/Discovery.cxx index 082e470ad..807308a12 100644 --- a/src/db/upnp/Discovery.cxx +++ b/src/db/upnp/Discovery.cxx @@ -88,8 +88,9 @@ UPnPDeviceDirectory::discoExplorer() } } - const ScopeLock protect(mutex); + mutex.lock(); directories[std::move(tsk->deviceId)] = std::move(d); + mutex.unlock(); delete tsk; } -- cgit v1.2.3