From 5b91f507f1db027eff34b793444d44dba52b3fc1 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sat, 16 Sep 2006 18:56:40 +0000
Subject: [PATCH] Update the internal connection handler to perform initialization in the constructor rather than the initializeConnectionHandler method, since it is not initialized in the same way as other connection handlers.

---
 opends/src/server/org/opends/server/protocols/internal/InternalConnectionHandler.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/opends/src/server/org/opends/server/protocols/internal/InternalConnectionHandler.java b/opends/src/server/org/opends/server/protocols/internal/InternalConnectionHandler.java
index 7942765..391916e 100644
--- a/opends/src/server/org/opends/server/protocols/internal/InternalConnectionHandler.java
+++ b/opends/src/server/org/opends/server/protocols/internal/InternalConnectionHandler.java
@@ -77,6 +77,11 @@
     super("Internal Connection Handler Thread");
 
     assert debugConstructor(CLASS_NAME);
+
+    // Since we can't guarantee that the initializeConnectionHandler method will
+    // always be called for this method, we'll do the necessary "initialization"
+    // here.
+    connectionList = new LinkedList<ClientConnection>();
   }
 
 
@@ -117,11 +122,6 @@
   {
     assert debugEnter(CLASS_NAME, "initializeConnectionHandler",
                       String.valueOf(configEntry));
-
-
-    // Create an empty connection list that will be returned by the
-    // getClientConnections method.
-    connectionList = new LinkedList<ClientConnection>();
   }
 
 

--
Gitblit v1.10.0