// we don't have to failover to another server; the current one is the one we already want
if (failover_list.hasNext()) {
String currentAddress = agent_config.getServerBindAddress();
int currentPort = agent_config.getServerBindPort();
String currentTransport = agent_config.getServerTransport();
ServerEntry nextServer = failover_list.peek();
if (currentAddress.equals(nextServer.address)
&& currentPort == (SecurityUtil.isTransportSecure(currentTransport) ? nextServer.securePort
: nextServer.port)) {
// we are already pointing to the primary server, so all we have to do is