mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-06 07:52:27 +02:00
Fix typo - retrySucess -> retrySuccess
* Fix typo - retrySucess -> retrySuccess
This commit is contained in:
parent
44576ea4ca
commit
cfdb295823
|
@ -645,8 +645,8 @@ final class OneDriveApi
|
||||||
int retryAttempts = 1;
|
int retryAttempts = 1;
|
||||||
int backoffInterval = 1;
|
int backoffInterval = 1;
|
||||||
int maxBackoffInterval = 3600;
|
int maxBackoffInterval = 3600;
|
||||||
bool retrySucess = false;
|
bool retrySuccess = false;
|
||||||
while (!retrySucess){
|
while (!retrySuccess){
|
||||||
backoffInterval++;
|
backoffInterval++;
|
||||||
log.vdebug(" Retry Attempt: ", retryAttempts);
|
log.vdebug(" Retry Attempt: ", retryAttempts);
|
||||||
int thisBackOffInterval = retryAttempts*backoffInterval;
|
int thisBackOffInterval = retryAttempts*backoffInterval;
|
||||||
|
@ -659,7 +659,7 @@ final class OneDriveApi
|
||||||
http.perform();
|
http.perform();
|
||||||
// no error from http.perform() on re-try
|
// no error from http.perform() on re-try
|
||||||
log.log("Internet connectivity to Microsoft OneDrive service has been restored");
|
log.log("Internet connectivity to Microsoft OneDrive service has been restored");
|
||||||
retrySucess = true;
|
retrySuccess = true;
|
||||||
} catch (CurlException e) {
|
} catch (CurlException e) {
|
||||||
if (canFind(e.msg, "Couldn't connect to server on handle")) {
|
if (canFind(e.msg, "Couldn't connect to server on handle")) {
|
||||||
log.error(" Error Message: There was a timeout in accessing the Microsoft OneDrive service - Internet connectivity issue?");
|
log.error(" Error Message: There was a timeout in accessing the Microsoft OneDrive service - Internet connectivity issue?");
|
||||||
|
@ -669,7 +669,7 @@ final class OneDriveApi
|
||||||
if (retryAttempts == retryCount) {
|
if (retryAttempts == retryCount) {
|
||||||
// we have attempted to re-connect X number of times
|
// we have attempted to re-connect X number of times
|
||||||
// false set this to true to break out of while loop
|
// false set this to true to break out of while loop
|
||||||
retrySucess = true;
|
retrySuccess = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue