diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/db/upnp/Discovery.cxx | 2 |
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 |