From 59bc08385515997a34fe2b4b3cbbfd03dd9a7c5b Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Wed, 18 Mar 2026 22:28:14 +0100 Subject: improve auth token refresh (#863) Authentication callbacks are not thread safe, ensured call sites does single threaded calls --- src/zenhttp/clients/httpclientcpr.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/zenhttp/clients/httpclientcpr.h') diff --git a/src/zenhttp/clients/httpclientcpr.h b/src/zenhttp/clients/httpclientcpr.h index 009e6fb7a..509ca5ae2 100644 --- a/src/zenhttp/clients/httpclientcpr.h +++ b/src/zenhttp/clients/httpclientcpr.h @@ -149,13 +149,13 @@ private: Session& operator=(Session&&) = delete; }; - Session AllocSession(const std::string_view BaseUrl, - const std::string_view Url, - const HttpClientSettings& ConnectionSettings, - const KeyValueMap& AdditionalHeader, - const KeyValueMap& Parameters, - const std::string_view SessionId, - std::optional AccessToken); + Session AllocSession(const std::string_view BaseUrl, + const std::string_view Url, + const HttpClientSettings& ConnectionSettings, + const KeyValueMap& AdditionalHeader, + const KeyValueMap& Parameters, + const std::string_view SessionId, + std::optional AccessToken); RwLock m_SessionLock; std::vector m_Sessions; -- cgit v1.2.3