From eedd0674890fcdf84dc17797133cd46a776bc702 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Thu, 31 Oct 2024 12:02:49 -0400 Subject: [PATCH] correct order of initialization, and ensure m_stop is set to false by default; --- src/common/lookups/TalkgroupRulesLookup.cpp | 1 + src/common/lookups/TalkgroupRulesLookup.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/lookups/TalkgroupRulesLookup.cpp b/src/common/lookups/TalkgroupRulesLookup.cpp index b7ac7f4d..93240fb5 100644 --- a/src/common/lookups/TalkgroupRulesLookup.cpp +++ b/src/common/lookups/TalkgroupRulesLookup.cpp @@ -35,6 +35,7 @@ TalkgroupRulesLookup::TalkgroupRulesLookup(const std::string& filename, uint32_t m_reloadTime(reloadTime), m_rules(), m_acl(acl), + m_stop(false), m_groupHangTime(5U), m_sendTalkgroups(false), m_groupVoice() diff --git a/src/common/lookups/TalkgroupRulesLookup.h b/src/common/lookups/TalkgroupRulesLookup.h index 564baec9..0ed25811 100644 --- a/src/common/lookups/TalkgroupRulesLookup.h +++ b/src/common/lookups/TalkgroupRulesLookup.h @@ -605,9 +605,9 @@ namespace lookups yaml::Node m_rules; bool m_acl; + bool m_stop; static std::mutex m_mutex; - bool m_stop; /** * @brief Loads the table from the passed lookup table file.