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

kenneth_suter
15.32.2007 07572b1a1f310425277e769bc497f2256121f192
opends/src/quicksetup/org/opends/quicksetup/util/ServerHealthChecker.java
@@ -72,9 +72,9 @@
   * @throws ApplicationException if things go wrong
   */
  public void checkServer() throws ApplicationException {
    InProcessServerController control =
            new InProcessServerController(installation);
    InProcessServerController control = null;
    try {
      control = new InProcessServerController(installation);
      if (installation.getStatus().isServerRunning()) {
        new ServerController(installation).stopServer();
      }
@@ -90,7 +90,9 @@
                        "tool: " + e.getLocalizedMessage(), e);
      }
    } finally {
      control.stopServer();
      if (control != null) {
        control.stopServer();
      }
    }
  }