Skip to content

Commit 27322aa

Browse files
author
Luke Gehorsam
authored
fix shared ptr in authenticateSteamAsync (#157)
1 parent 8109dfb commit 27322aa

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project are documented below.
44

55
The format is based on [keep a changelog](http://keepachangelog.com/) and this project uses [semantic versioning](http://semver.org/).
66

7+
### [2.8.5] - [2024-05-23]
8+
### Fixed
9+
- Fixed initialization of shared pointer in `authenticateSteamAsync`.
10+
711
### [2.8.4] - [2023-11-25]
812
### Fixed
913
- Fixed an issue where `NRtClient` would throw an exception when connecting over poor Wifi connections.

core/common/BaseClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ std::future<NSessionPtr> BaseClient::authenticateSteamAsync(
204204
bool create,
205205
const NStringMap& vars)
206206
{
207-
auto promise = std::shared_ptr<std::promise<NSessionPtr>>();
207+
auto promise = std::make_shared<std::promise<NSessionPtr>>();
208208

209209
authenticateSteam(token, username, create, vars,
210210
[=](NSessionPtr session) {

version.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Easy to update by CI scripts file containing our version as well as
22
# dependent git repos to achieve reproducible builds
33

4-
set(LIBNAKAMA_VERSION 2.8.4)
4+
set(LIBNAKAMA_VERSION 2.8.5)

0 commit comments

Comments
 (0)