mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 13:25: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:
parent
87472b6086
commit
1af5fcdf34
@ -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!");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user