From 74a8448e45dbeba4803e92851f8a3023e038509b Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 24 Apr 2007 15:41:08 +0000
Subject: [PATCH] Fix for issue 1448 (closing the status panel causes I/O Error in opends)

---
 opends/src/statuspanel/org/opends/statuspanel/ConfigFromLDAP.java |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/opends/src/statuspanel/org/opends/statuspanel/ConfigFromLDAP.java b/opends/src/statuspanel/org/opends/statuspanel/ConfigFromLDAP.java
index 5366004..b7f5e1e 100644
--- a/opends/src/statuspanel/org/opends/statuspanel/ConfigFromLDAP.java
+++ b/opends/src/statuspanel/org/opends/statuspanel/ConfigFromLDAP.java
@@ -125,6 +125,23 @@
   }
 
   /**
+   * Method to be called to close properly the connection.
+   */
+  public void closeConnection()
+  {
+    if (ctx != null)
+    {
+      try
+      {
+        ctx.close();
+      }
+      catch (Throwable t)
+      {
+      }
+    }
+  }
+
+  /**
    * Reads the configuration and monitoring information of the server using
    * LDAP.
    * When calling this method the thread is blocked until all the configuration

--
Gitblit v1.10.0