summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-07-20 22:32:27 +0200
committerMax Kellermann <max@musicpd.org>2020-07-20 22:32:59 +0200
commit2fc4802886e81a8cecdb6697d79b54852c7ec6b3 (patch)
tree274c7d7efe9cec678c79a5ae8b540288843a9786
parentbb3f487ee5c2a3e27dd6233d28fe53cb2d86a066 (diff)
neighbor/smbclient: remove mutex locking
This is no longer necessary with the new API.
-rw-r--r--src/neighbor/plugins/SmbclientNeighborPlugin.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/neighbor/plugins/SmbclientNeighborPlugin.cxx b/src/neighbor/plugins/SmbclientNeighborPlugin.cxx
index ad944b003..9ea58f33d 100644
--- a/src/neighbor/plugins/SmbclientNeighborPlugin.cxx
+++ b/src/neighbor/plugins/SmbclientNeighborPlugin.cxx
@@ -21,7 +21,6 @@
#include "lib/smbclient/Init.hxx"
#include "lib/smbclient/Context.hxx"
#include "lib/smbclient/Domain.hxx"
-#include "lib/smbclient/Mutex.hxx"
#include "neighbor/NeighborPlugin.hxx"
#include "neighbor/Explorer.hxx"
#include "neighbor/Listener.hxx"
@@ -180,7 +179,6 @@ static NeighborExplorer::List
DetectServers(SmbclientContext &ctx) noexcept
{
NeighborExplorer::List list;
- const std::lock_guard<Mutex> protect(smbclient_mutex);
ReadServers(ctx, "smb://", list);
return list;
}