diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/db/upnp/Discovery.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |