Fixed infinite loop checking ApacheHttpErrorLogFiles.

This commit is contained in:
Christian P. MOMON 2024-08-17 23:27:36 +02:00
parent 6455fc7e90
commit 9caa833856

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2023 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -152,6 +152,7 @@ public class FilesUtils
try try
{ {
iterator = new FilesLineIterator(files); iterator = new FilesLineIterator(files);
iterator.setPrintOff();
boolean ended = false; boolean ended = false;
while (!ended) while (!ended)
@ -168,6 +169,7 @@ public class FilesUtils
else else
{ {
result = null; result = null;
ended = true;
} }
} }
} }