mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
Fix: DynamicObject::Unregister() failed to unregister objects.
This commit is contained in:
parent
5a7aeb1f19
commit
51bad2d2a6
@ -284,7 +284,7 @@ void DynamicObject::Unregister(void)
|
|||||||
{
|
{
|
||||||
assert(Application::IsMainThread());
|
assert(Application::IsMainThread());
|
||||||
|
|
||||||
if (GetType()->GetObject(GetName()))
|
if (!GetType()->GetObject(GetName()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
GetType()->UnregisterObject(GetSelf());
|
GetType()->UnregisterObject(GetSelf());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user