Fix "leader_thread" logic (for info messages) (#110)

This commit is contained in:
Lee *!* Clagett 2024-04-07 21:36:01 -04:00 committed by GitHub
parent 6f71cc08b3
commit fb6e1dedd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -994,7 +994,7 @@ namespace lws
auto data = std::make_shared<thread_data>(
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();