mirror of https://github.com/Icinga/icinga2.git
Fix uninitialized field in the CheckerComponent class
This commit is contained in:
parent
ac7a55cf56
commit
274e6e9785
|
@ -59,6 +59,10 @@ void CheckerComponent::StatsFunc(const Dictionary::Ptr& status, const Array::Ptr
|
||||||
status->Set("checkercomponent", nodes);
|
status->Set("checkercomponent", nodes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CheckerComponent::CheckerComponent(void)
|
||||||
|
: m_Stopped(false)
|
||||||
|
{ }
|
||||||
|
|
||||||
void CheckerComponent::OnConfigLoaded(void)
|
void CheckerComponent::OnConfigLoaded(void)
|
||||||
{
|
{
|
||||||
DynamicObject::OnStarted.connect(bind(&CheckerComponent::ObjectHandler, this, _1));
|
DynamicObject::OnStarted.connect(bind(&CheckerComponent::ObjectHandler, this, _1));
|
||||||
|
@ -73,8 +77,6 @@ void CheckerComponent::Start(void)
|
||||||
{
|
{
|
||||||
DynamicObject::Start();
|
DynamicObject::Start();
|
||||||
|
|
||||||
m_Stopped = false;
|
|
||||||
|
|
||||||
m_Thread = boost::thread(boost::bind(&CheckerComponent::CheckThreadProc, this));
|
m_Thread = boost::thread(boost::bind(&CheckerComponent::CheckThreadProc, this));
|
||||||
|
|
||||||
m_ResultTimer = new Timer();
|
m_ResultTimer = new Timer();
|
||||||
|
|
|
@ -68,6 +68,8 @@ public:
|
||||||
>
|
>
|
||||||
> CheckableSet;
|
> CheckableSet;
|
||||||
|
|
||||||
|
CheckerComponent(void);
|
||||||
|
|
||||||
virtual void OnConfigLoaded(void);
|
virtual void OnConfigLoaded(void);
|
||||||
virtual void Start(void);
|
virtual void Start(void);
|
||||||
virtual void Stop(void);
|
virtual void Stop(void);
|
||||||
|
|
Loading…
Reference in New Issue