Author: adietish
Date: 2011-02-14 10:19:32 -0500 (Mon, 14 Feb 2011)
New Revision: 29134
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java
Log:
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java 2011-02-14
13:54:09 UTC (rev 29133)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java 2011-02-14
15:19:32 UTC (rev 29134)
@@ -266,13 +266,13 @@
DeltaCloudInstance instance = getInstancesRepository().getById(instanceId);
if (instance != null) {
while (!pm.isCanceled()) {
- Thread.sleep(WAIT_FOR_STATE_DELAY);
- instance = refreshInstance(instance);
State state = instance.getState();
if (state == expectedState
|| instance.isInState(DeltaCloudInstance.State.TERMINATED)) {
return instance;
}
+ Thread.sleep(WAIT_FOR_STATE_DELAY);
+ instance = refreshInstance(instance);
}
}
return instance;
Show replies by date