mirror of https://github.com/Icinga/icinga2.git
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);
|
||||
}
|
||||
|
||||
OnCommentsChanged(GetSelf(), Empty, CommentChangedDeleted);
|
||||
|
||||
ObjectLock olock(this);
|
||||
Touch("comments");
|
||||
}
|
||||
|
||||
OnCommentsChanged(GetSelf(), Empty, CommentChangedDeleted);
|
||||
}
|
||||
|
||||
void Service::RemoveExpiredComments(void)
|
||||
|
@ -309,11 +310,12 @@ void Service::RemoveExpiredComments(void)
|
|||
comments->Remove(id);
|
||||
}
|
||||
|
||||
OnCommentsChanged(GetSelf(), Empty, CommentChangedDeleted);
|
||||
|
||||
ObjectLock olock(this);
|
||||
Touch("comments");
|
||||
}
|
||||
|
||||
OnCommentsChanged(GetSelf(), Empty, CommentChangedDeleted);
|
||||
}
|
||||
|
||||
void Service::CommentsExpireTimerHandler(void)
|
||||
|
|
Loading…
Reference in New Issue