mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
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…
x
Reference in New Issue
Block a user