Skip to content

Commit 78a4b9a

Browse files
committed
change to while - issure refactoring
1 parent 11cab28 commit 78a4b9a

File tree

1 file changed

+1
-1
lines changed
  • plugins/backup/veeam/src/main/java/org/apache/cloudstack/backup/veeam

1 file changed

+1
-1
lines changed

plugins/backup/veeam/src/main/java/org/apache/cloudstack/backup/veeam/VeeamClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ private boolean checkTaskStatus(final HttpResponse response) throws IOException
368368
protected void checkIfRestoreSessionFinished(String type, String path) throws IOException {
369369
long startTime = System.currentTimeMillis();
370370
long timeoutMs = restoreTimeout * 1000L;
371-
if (System.currentTimeMillis() - startTime < timeoutMs) {
371+
while (System.currentTimeMillis() - startTime < timeoutMs) {
372372
HttpResponse relatedResponse = get(path);
373373
RestoreSession session = parseRestoreSessionResponse(relatedResponse);
374374
if (session.getResult().equals("Success")) {

0 commit comments

Comments
 (0)