diff --git a/nano/node/json_handler.cpp b/nano/node/json_handler.cpp index 4e910cbd..2e1150ee 100644 --- a/nano/node/json_handler.cpp +++ b/nano/node/json_handler.cpp @@ -1669,6 +1669,8 @@ void nano::json_handler::bootstrap_status () auto attempt (node.bootstrap_initiator.current_attempt ()); if (attempt != nullptr) { + nano::lock_guard lock (attempt->mutex); + nano::lock_guard lazy_lock (attempt->lazy_mutex); response_l.put ("clients", std::to_string (attempt->clients.size ())); response_l.put ("pulls", std::to_string (attempt->pulls.size ())); response_l.put ("pulling", std::to_string (attempt->pulling));