Fix user input bug in viewer

which created exponential copies of user comments!
This commit is contained in:
Douglas Gillespie 2023-12-14 12:42:41 +00:00
parent 2dd90f6a32
commit 4297afdc51

View File

@ -136,7 +136,9 @@ public class UserInputLogger extends SQLLogging {
if (dataUnit != null && dataUnit.getDatabaseIndex() != databaseIndex) {
dataUnit.setDatabaseIndex(databaseIndex);
dataUnit.setUserString(dataUnit.getUserString() + " " + txt);
getPamDataBlock().updatePamData(dataUnit, timeMilliseconds);
// don't call this next line, it causes the unit to get relogged.
// getPamDataBlock().updatePamData(dataUnit, timeMilliseconds);
dataUnit.clearUpdateCount();
}
else {
dataUnit = new UserInputDataUnit(timeMilliseconds, txt);