We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c2946b commit e55b7dfCopy full SHA for e55b7df
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