We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ac9161f + e55b7df commit 6463c9cCopy full SHA for 6463c9c
src/aws-cpp-sdk-core/source/auth/GeneralHTTPCredentialsProvider.cpp
@@ -122,7 +122,11 @@ bool GeneralHTTPCredentialsProvider::ShouldCreateGeneralHTTPProvider(const Aws::
122
shouldAllow = !addresses.empty();
123
hostResolved = true;
124
}
125
- hostResolverCV.notify_one();
+ else
126
+ {
127
+ std::unique_lock<std::mutex> lock(hostResolverMutex);
128
+ hostResolverCV.notify_one();
129
+ }
130
};
131
pHostResolver->ResolveHost(authority.c_str(), onHostResolved);
132
std::unique_lock<std::mutex> lock(hostResolverMutex);
@@ -259,4 +263,4 @@ void GeneralHTTPCredentialsProvider::RefreshIfExpired()
259
263
260
264
261
265
Reload();
262
-}
266
+}
0 commit comments