1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 21:35:45 +02:00

roots: don't access a shared variable after releasing a lock

Access the local copy of `m_root_crawl_map` instead.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell 2025-01-03 19:56:37 -05:00
parent 87472b6086
commit 1af5fcdf34

View File

@ -1632,7 +1632,7 @@ BeesRoots::insert_new_crawl()
lock.unlock();
// Nothing to crawl? Seems suspicious...
if (m_root_crawl_map.empty()) {
if (crawl_map_copy.empty()) {
BEESLOGINFO("crawl map is empty!");
}