Notify listeners only if told to do so

This commit is contained in:
Jan Broß committed 2014-11-28 11:57:31 +01:00
1 parent 45e64333de
commit 6b1dd68e10
1 file changed
+1 -1
@@ -100,7 +100,7 @@ extends TrackImpl<EventT> implements AbstractLog<EventT, VisitorT> {
}
if (isAdded) {
logger.finer(String.format("%s (%s) was added to log %s.", event, event.getClass().getName(), getId()));
onSuccessfulAdd(event, true);
onSuccessfulAdd(event, notifyListeners);
} else {
logger.fine(String.format("%s (%s) was not added to race log %s because it already existed there.", event, event.getClass().getName(), getId()));
}