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

Ludovic Poitou
07.02.2014 4410804cc9f533fecdce0da24c5ce42e593fbb80
opends/src/server/org/opends/server/protocols/jmx/JmxClientConnection.java
@@ -22,7 +22,7 @@
 *
 *
 *      Copyright 2006-2009 Sun Microsystems, Inc.
 *      Portions Copyright 2011-2013 ForgeRock AS
 *      Portions Copyright 2011-2014 ForgeRock AS
 */
package org.opends.server.protocols.jmx;
@@ -137,7 +137,6 @@
  {
    JMXConnectionNotification jcn ;
    //
    // We don't have the expected notification
    if ( ! (notif instanceof JMXConnectionNotification))
    {
@@ -148,7 +147,6 @@
      jcn = (JMXConnectionNotification) notif ;
    }
    //
    // The only handled notifications are CLOSED and FAILED
    if ((!jcn.getType().equals(JMXConnectionNotification.CLOSED))
        && (!jcn.getType().equals(JMXConnectionNotification.FAILED)))
@@ -156,14 +154,12 @@
      return;
    }
    //
    // Check if the closed connection corresponds to the current connection
    if (!(jcn.getConnectionId().equals(jmxConnectionID)))
    {
      return;
    }
    //
    // Ok, we can perform the unbind: call finalize
    disconnect(DisconnectReason.CLIENT_DISCONNECT, false, null);
  }
@@ -967,10 +963,9 @@
      return;
    }
    disconnectStarted = true ;
    jmxConnectionHandler.unregisterClientConnection(this);
    finalizeConnectionInternal();
    // unbind the underlying connection
    try
    {