[icinga-checkins] icinga.org: icinga2/master: Implement DynamicObject::Stop().

git at icinga.org git at icinga.org
Tue Mar 12 13:48:53 CET 2013


Module: icinga2
Branch: master
Commit: 69a2842d4ebc42e9209c123711d8638616e07607
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=69a2842d4ebc42e9209c123711d8638616e07607

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Tue Mar 12 13:48:37 2013 +0100

Implement DynamicObject::Stop().

---

 lib/base/dynamicobject.cpp |    2 ++
 lib/base/dynamicobject.h   |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/lib/base/dynamicobject.cpp b/lib/base/dynamicobject.cpp
index bbe94a6..ae272b1 100644
--- a/lib/base/dynamicobject.cpp
+++ b/lib/base/dynamicobject.cpp
@@ -393,6 +393,8 @@ void DynamicObject::OnUnregistrationCompleted(void)
 {
 	ASSERT(!OwnsLock());
 
+	Stop();
+
 	OnUnregistered(GetSelf());
 }
 
diff --git a/lib/base/dynamicobject.h b/lib/base/dynamicobject.h
index fd46723..3e87f04 100644
--- a/lib/base/dynamicobject.h
+++ b/lib/base/dynamicobject.h
@@ -82,6 +82,7 @@ public:
 	void Unregister(void);
 
 	virtual void Start(void);
+	virtual void Stop(void);
 
 	const AttributeMap& GetAttributes(void) const;
 





More information about the icinga-checkins mailing list