diff --git a/core/auth/src/main/java/software/amazon/awssdk/auth/credentials/ProfileCredentialsProvider.java b/core/auth/src/main/java/software/amazon/awssdk/auth/credentials/ProfileCredentialsProvider.java index 95d6bb88afb4..203f0cbce83c 100644 --- a/core/auth/src/main/java/software/amazon/awssdk/auth/credentials/ProfileCredentialsProvider.java +++ b/core/auth/src/main/java/software/amazon/awssdk/auth/credentials/ProfileCredentialsProvider.java @@ -122,8 +122,8 @@ public AwsCredentials resolveCredentials() { if (shouldUpdateCredentialsProvider(cachedOrRefreshedProfileFile)) { synchronized (credentialsProviderLock) { if (shouldUpdateCredentialsProvider(cachedOrRefreshedProfileFile)) { - currentProfileFile = cachedOrRefreshedProfileFile; handleProfileFileReload(cachedOrRefreshedProfileFile); + currentProfileFile = cachedOrRefreshedProfileFile; } } }