From fb6e1dedd5e3a454e203394adde8cdaeac720b47 Mon Sep 17 00:00:00 2001 From: Lee *!* Clagett Date: Sun, 7 Apr 2024 21:36:01 -0400 Subject: [PATCH] Fix "leader_thread" logic (for info messages) (#110) --- src/scanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanner.cpp b/src/scanner.cpp index d136127..7c02273 100644 --- a/src/scanner.cpp +++ b/src/scanner.cpp @@ -994,7 +994,7 @@ namespace lws auto data = std::make_shared( std::move(client), disk.clone(), std::move(users), opts ); - threads.emplace_back(attrs, std::bind(&scan_loop, std::ref(self), std::move(data), opts.untrusted_daemon, false /*leader thread*/)); + threads.emplace_back(attrs, std::bind(&scan_loop, std::ref(self), std::move(data), opts.untrusted_daemon, leader_thread)); } auto last_check = std::chrono::steady_clock::now();