From 9bce07b9bff3d251fe7284f7096a6e828279a6c2 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Thu, 17 Jan 2008 08:54:44 +0000
Subject: [PATCH] fix for issue #2836 (dsconfig: after failed 1st attempt, 2nd attempt to connect to server exits)
---
opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java b/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java
index 52b7250..26a7b74 100644
--- a/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java
+++ b/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Portions Copyright 2007 Sun Microsystems, Inc.
+ * Portions Copyright 2007-2008 Sun Microsystems, Inc.
*/
package org.opends.server.tools.dsconfig;
@@ -94,6 +94,17 @@
}
/**
+ * {@inheritDoc}
+ */
+ public void close()
+ {
+ if (context != null)
+ {
+ context.close();
+ }
+ }
+
+ /**
* Gets the management context which sub-commands should use in
* order to manage the directory server. Implementations can use the
* application instance for retrieving passwords interactively.
--
Gitblit v1.10.0