Build fix.

This commit is contained in:
Vladimir Chebotarev 2021-11-16 12:31:51 +03:00
parent 5e9710a26e
commit 1e79177ce2

View File

@ -459,7 +459,7 @@ public:
{ {
return Aws::Auth::AWSCredentials(); return Aws::Auth::AWSCredentials();
} }
RefreshIfExpired(); refreshIfExpired();
Aws::Utils::Threading::ReaderLockGuard guard(m_reloadLock); Aws::Utils::Threading::ReaderLockGuard guard(m_reloadLock);
return credentials; return credentials;
} }
@ -488,7 +488,7 @@ protected:
} }
private: private:
void RefreshIfExpired() void refreshIfExpired()
{ {
Aws::Utils::Threading::ReaderLockGuard guard(m_reloadLock); Aws::Utils::Threading::ReaderLockGuard guard(m_reloadLock);
if (!credentials.IsExpiredOrEmpty()) if (!credentials.IsExpiredOrEmpty())