mirror of https://github.com/apache/cloudstack.git
change to while - issure refactoring
This commit is contained in:
parent
11cab28847
commit
78a4b9a9c8
|
|
@ -368,7 +368,7 @@ public class VeeamClient {
|
|||
protected void checkIfRestoreSessionFinished(String type, String path) throws IOException {
|
||||
long startTime = System.currentTimeMillis();
|
||||
long timeoutMs = restoreTimeout * 1000L;
|
||||
if (System.currentTimeMillis() - startTime < timeoutMs) {
|
||||
while (System.currentTimeMillis() - startTime < timeoutMs) {
|
||||
HttpResponse relatedResponse = get(path);
|
||||
RestoreSession session = parseRestoreSessionResponse(relatedResponse);
|
||||
if (session.getResult().equals("Success")) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue