Fix typo - retrySucess -> retrySuccess

* Fix typo - retrySucess -> retrySuccess
This commit is contained in:
abraunegg 2019-10-21 18:53:00 +11:00 committed by GitHub
parent 44576ea4ca
commit cfdb295823
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
} }
} }
} }