mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +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);
|
||||
}
|
||||
|
||||
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…
x
Reference in New Issue
Block a user