mirror of https://github.com/apache/cloudstack.git
bug 7794: sleep should be in out of try statement
status 7794: resolved fixed
This commit is contained in:
parent
355286e8f5
commit
fc811e8d49
|
|
@ -128,10 +128,6 @@ public class XenServerConnectionPool {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
try {
|
||||
Thread.sleep(2000);
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
} catch (Exception e) {
|
||||
} finally {
|
||||
if (slaveSession != null) {
|
||||
|
|
@ -142,6 +138,10 @@ public class XenServerConnectionPool {
|
|||
slaveConn.dispose();
|
||||
}
|
||||
}
|
||||
try {
|
||||
Thread.sleep(2000);
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue