diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-19 01:31:35 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-19 01:31:35 +0200 |
commit | 71b3b2a2f0f0ec5d0a0061d3d7ea42a1f63ae1de (patch) | |
tree | 023ef7def25a0bf79ae1556fa9fc0178bf980d2b /src/web_service | |
parent | Merge pull request #11109 from Morph1984/net (diff) | |
download | yuzu-71b3b2a2f0f0ec5d0a0061d3d7ea42a1f63ae1de.tar yuzu-71b3b2a2f0f0ec5d0a0061d3d7ea42a1f63ae1de.tar.gz yuzu-71b3b2a2f0f0ec5d0a0061d3d7ea42a1f63ae1de.tar.bz2 yuzu-71b3b2a2f0f0ec5d0a0061d3d7ea42a1f63ae1de.tar.lz yuzu-71b3b2a2f0f0ec5d0a0061d3d7ea42a1f63ae1de.tar.xz yuzu-71b3b2a2f0f0ec5d0a0061d3d7ea42a1f63ae1de.tar.zst yuzu-71b3b2a2f0f0ec5d0a0061d3d7ea42a1f63ae1de.zip |
Diffstat (limited to 'src/web_service')
-rw-r--r-- | src/web_service/announce_room_json.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/web_service/announce_room_json.cpp b/src/web_service/announce_room_json.cpp index 4c3195efd..f1020a5b8 100644 --- a/src/web_service/announce_room_json.cpp +++ b/src/web_service/announce_room_json.cpp @@ -135,11 +135,11 @@ void RoomJson::Delete() { LOG_ERROR(WebService, "Room must be registered to be deleted"); return; } - Common::DetachedTasks::AddTask( - [host{this->host}, username{this->username}, token{this->token}, room_id{this->room_id}]() { - // create a new client here because the this->client might be destroyed. - Client{host, username, token}.DeleteJson(fmt::format("/lobby/{}", room_id), "", false); - }); + Common::DetachedTasks::AddTask([host_{this->host}, username_{this->username}, + token_{this->token}, room_id_{this->room_id}]() { + // create a new client here because the this->client might be destroyed. + Client{host_, username_, token_}.DeleteJson(fmt::format("/lobby/{}", room_id_), "", false); + }); } } // namespace WebService |