mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-25 17:22:33 +02:00
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 {
|
protected void checkIfRestoreSessionFinished(String type, String path) throws IOException {
|
||||||
long startTime = System.currentTimeMillis();
|
long startTime = System.currentTimeMillis();
|
||||||
long timeoutMs = restoreTimeout * 1000L;
|
long timeoutMs = restoreTimeout * 1000L;
|
||||||
if (System.currentTimeMillis() - startTime < timeoutMs) {
|
while (System.currentTimeMillis() - startTime < timeoutMs) {
|
||||||
HttpResponse relatedResponse = get(path);
|
HttpResponse relatedResponse = get(path);
|
||||||
RestoreSession session = parseRestoreSessionResponse(relatedResponse);
|
RestoreSession session = parseRestoreSessionResponse(relatedResponse);
|
||||||
if (session.getResult().equals("Success")) {
|
if (session.getResult().equals("Success")) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user