void processConnectionClosure(){
  if (unsolicited.size() > 0) {
    String msg;
    if (conn != null) {
      msg=conn.host + ":" + conn.port+ " connection closed";
    }
 else {
      msg="Connection closed";
    }
    notifyUnsolicited(new CommunicationException(msg));
  }
  if (pooled) {
    pcb.removePooledConnection(this);
  }
}

void processConnectionClosure ( ) { if ( unsolicited . size ( ) > 0 ) { String msg ; if ( conn != null ) { msg = conn . host + ":" + conn . port + " connection closed" ; } else { msg = "Connection closed" ; } notifyUnsolicited ( new CommunicationException ( msg ) ) ; } if ( pooled ) { pcb . removePooledConnection ( this ) ; } }
called by connection . cleanup ( ) . ldapclient should notify any unsolicited listeners and removing itself from any pool . this is almost like forceclose ( ) , except it doesn ' t call connection . cleanup ( ) ( because this is called from cleanup ( ) ) .
