Skip to content

Commit

Permalink
fix shared ptr in authenticateSteamAsync (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Gehorsam authored May 23, 2024
1 parent 8109dfb commit 27322aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project are documented below.

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

### [2.8.5] - [2024-05-23]
### Fixed
- Fixed initialization of shared pointer in `authenticateSteamAsync`.

### [2.8.4] - [2023-11-25]
### Fixed
- Fixed an issue where `NRtClient` would throw an exception when connecting over poor Wifi connections.
Expand Down
2 changes: 1 addition & 1 deletion core/common/BaseClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ std::future<NSessionPtr> BaseClient::authenticateSteamAsync(
bool create,
const NStringMap& vars)
{
auto promise = std::shared_ptr<std::promise<NSessionPtr>>();
auto promise = std::make_shared<std::promise<NSessionPtr>>();

authenticateSteam(token, username, create, vars,
[=](NSessionPtr session) {
Expand Down
2 changes: 1 addition & 1 deletion version.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Easy to update by CI scripts file containing our version as well as
# dependent git repos to achieve reproducible builds

set(LIBNAKAMA_VERSION 2.8.4)
set(LIBNAKAMA_VERSION 2.8.5)

0 comments on commit 27322aa

Please sign in to comment.