diff --git a/agent/src/com/cloud/agent/Agent.java b/agent/src/com/cloud/agent/Agent.java index 67115e649a1b..1b3526db22de 100644 --- a/agent/src/com/cloud/agent/Agent.java +++ b/agent/src/com/cloud/agent/Agent.java @@ -509,8 +509,8 @@ protected void reconnect(final Link link) { _shell.getBackoffAlgorithm().waitBeforeRetry(); } - final String host = _shell.getNextHost(); do { + final String host = _shell.getNextHost(); _connection = new NioClient("Agent", host, _shell.getPort(), _shell.getWorkers(), this); s_logger.info("Reconnecting to host:" + host); try {