aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp/Discovery.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/upnp/Discovery.cxx')
-rw-r--r--src/db/upnp/Discovery.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/upnp/Discovery.cxx b/src/db/upnp/Discovery.cxx
index ad63530db..89ece3dfd 100644
--- a/src/db/upnp/Discovery.cxx
+++ b/src/db/upnp/Discovery.cxx
@@ -61,7 +61,6 @@ UPnPDeviceDirectory::discoExplorer()
return;
}
- const ScopeLock protect(mutex);
// Device signals its existence and well-being. Perform the
// UPnP "description" phase by downloading and decoding the
// description document.
@@ -81,6 +80,7 @@ UPnPDeviceDirectory::discoExplorer()
continue;
}
+ const ScopeLock protect(mutex);
#if defined(__clang__) || GCC_CHECK_VERSION(4,8)
auto e = directories.emplace(tsk->deviceId, d);
#else