CLOUDSTACK-8238 handling of retry ping improved

This commit is contained in:
Daan Hoogland 2015-02-10 14:34:20 +01:00
parent 0c0c7dd070
commit fbafc957dc
1 changed files with 2 additions and 2 deletions

View File

@ -170,9 +170,9 @@ public class DirectAgentAttache extends AgentAttache {
ServerResource resource = _resource;
if (resource != null) {
PingCommand cmd = null;
PingCommand cmd = resource.getCurrentStatus(_id);
int retried = 0;
while ( cmd == null && ++retried < _HostPingRetryCount.value())
while ( cmd == null && ++retried <= _HostPingRetryCount.value())
{
cmd = resource.getCurrentStatus(_id);
Thread.sleep(1000*_HostPingRetryTimer.value());