aboutsummaryrefslogtreecommitdiffstats
path: root/src/neighbor/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/neighbor/plugins')
-rw-r--r--src/neighbor/plugins/SmbclientNeighborPlugin.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/neighbor/plugins/SmbclientNeighborPlugin.cxx b/src/neighbor/plugins/SmbclientNeighborPlugin.cxx
index 2b81f3ceb..2701b0ccd 100644
--- a/src/neighbor/plugins/SmbclientNeighborPlugin.cxx
+++ b/src/neighbor/plugins/SmbclientNeighborPlugin.cxx
@@ -21,6 +21,7 @@
#include "SmbclientNeighborPlugin.hxx"
#include "lib/smbclient/Init.hxx"
#include "lib/smbclient/Domain.hxx"
+#include "lib/smbclient/Mutex.hxx"
#include "neighbor/NeighborPlugin.hxx"
#include "neighbor/Explorer.hxx"
#include "neighbor/Listener.hxx"
@@ -175,6 +176,7 @@ static NeighborExplorer::List
DetectServers()
{
NeighborExplorer::List list;
+ const ScopeLock protect(smbclient_mutex);
ReadServers(list, "smb://");
return list;
}