try pingXenServer first before getConnect in getCurrentStatus

This commit is contained in:
anthony 2011-09-01 11:48:53 -07:00
parent d923079ed9
commit bc23b47e7a
1 changed files with 1 additions and 1 deletions

View File

@ -3746,7 +3746,6 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
@Override
public PingCommand getCurrentStatus(long id) {
try {
Connection conn = getConnection();
if (!pingXenServer()) {
Thread.sleep(1000);
if (!pingXenServer()) {
@ -3754,6 +3753,7 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
return null;
}
}
Connection conn = getConnection();
HashMap<String, State> newStates = deltaSync(conn);
if (newStates == null) {
s_logger.warn("Unable to get current status from sync");