public void addAddress(PeerAddress peerAddress){
  int newMax;
  lock.lock();
  try {
    addInactive(peerAddress);
    newMax=getMaxConnections() + 1;
  }
  finally {
    lock.unlock();
  }
  setMaxConnections(newMax);
}

public void addAddress ( PeerAddress peerAddress ) { int newMax ; lock . lock ( ) ; try { addInactive ( peerAddress ) ; newMax = getMaxConnections ( ) + 1 ; } finally { lock . unlock ( ) ; } setMaxConnections ( newMax ) ; }
add an address to the list of potential peers to connect to . it won ' t necessarily be used unless there ' s a need to build new connections to reach the max connection count .
