From 69a2842d4ebc42e9209c123711d8638616e07607 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 12 Mar 2013 13:48:37 +0100 Subject: [PATCH] Implement DynamicObject::Stop(). --- lib/base/dynamicobject.cpp | 2 ++ lib/base/dynamicobject.h | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/base/dynamicobject.cpp b/lib/base/dynamicobject.cpp index bbe94a62f..ae272b158 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 fd467237c..3e87f04d9 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;