mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Valery Kharseko
yesterday 0885d16ac22a0ecd2267bf3c8818a3a8a5a9dadb
opendj-server-legacy/src/main/java/org/opends/quicksetup/util/ServerController.java
@@ -561,8 +561,9 @@
      Thread t = new Thread(new Runnable() {
        @Override
        public void run() {
          try {
            String line = reader.readLine();
          // The reader is owned by this thread, which closes it once the stream is drained.
          try (BufferedReader in = reader) {
            String line = in.readLine();
            while (line != null) {
              if (application != null) {
                LocalizableMessageBuilder buf = new LocalizableMessageBuilder();
@@ -581,7 +582,7 @@
                isFirstLine = false;
              }
              logger.info(LocalizableMessage.raw("server: " + line));
              line = reader.readLine();
              line = in.readLine();
            }
          } catch (Throwable t) {
            if (application != null) {
@@ -646,9 +647,10 @@
        @Override
        public void run()
        {
          try
          // The reader is owned by this thread, which closes it once the stream is drained.
          try (BufferedReader in = reader)
          {
            String line = reader.readLine();
            String line = in.readLine();
            while (line != null)
            {
              if (application != null) {
@@ -676,7 +678,7 @@
                isFinished = true;
                startedIdFound = true;
              }
              line = reader.readLine();
              line = in.readLine();
            }
          } catch (Throwable t)
          {