We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11cab28 commit 78a4b9aCopy full SHA for 78a4b9a
plugins/backup/veeam/src/main/java/org/apache/cloudstack/backup/veeam/VeeamClient.java
@@ -368,7 +368,7 @@ private boolean checkTaskStatus(final HttpResponse response) throws IOException
368
protected void checkIfRestoreSessionFinished(String type, String path) throws IOException {
369
long startTime = System.currentTimeMillis();
370
long timeoutMs = restoreTimeout * 1000L;
371
- if (System.currentTimeMillis() - startTime < timeoutMs) {
+ while (System.currentTimeMillis() - startTime < timeoutMs) {
372
HttpResponse relatedResponse = get(path);
373
RestoreSession session = parseRestoreSessionResponse(relatedResponse);
374
if (session.getResult().equals("Success")) {
0 commit comments