mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
comments: Only send signal on removal.
This commit is contained in:
parent
3c0b8b9d5a
commit
478e42dbde
@ -277,11 +277,12 @@ void Service::RemoveCommentsByType(int type)
|
|||||||
comments->Remove(id);
|
comments->Remove(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
OnCommentsChanged(GetSelf(), Empty, CommentChangedDeleted);
|
||||||
|
|
||||||
ObjectLock olock(this);
|
ObjectLock olock(this);
|
||||||
Touch("comments");
|
Touch("comments");
|
||||||
}
|
}
|
||||||
|
|
||||||
OnCommentsChanged(GetSelf(), Empty, CommentChangedDeleted);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Service::RemoveExpiredComments(void)
|
void Service::RemoveExpiredComments(void)
|
||||||
@ -309,11 +310,12 @@ void Service::RemoveExpiredComments(void)
|
|||||||
comments->Remove(id);
|
comments->Remove(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
OnCommentsChanged(GetSelf(), Empty, CommentChangedDeleted);
|
||||||
|
|
||||||
ObjectLock olock(this);
|
ObjectLock olock(this);
|
||||||
Touch("comments");
|
Touch("comments");
|
||||||
}
|
}
|
||||||
|
|
||||||
OnCommentsChanged(GetSelf(), Empty, CommentChangedDeleted);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Service::CommentsExpireTimerHandler(void)
|
void Service::CommentsExpireTimerHandler(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user