summaryrefslogtreecommitdiffstats
path: root/src/web_service/announce_room_json.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-07-19 23:14:55 +0200
committerGitHub <noreply@github.com>2023-07-19 23:14:55 +0200
commit014ca709c939512569abc7765b031b496c62a884 (patch)
treed43c24e639c9102e63c48a53ee3c8cefaee6f321 /src/web_service/announce_room_json.cpp
parentMerge pull request #11114 from Kelebek1/warnings (diff)
parentdemangle: Update to llvm/llvm-project@ecbc812e0cca (diff)
downloadyuzu-014ca709c939512569abc7765b031b496c62a884.tar
yuzu-014ca709c939512569abc7765b031b496c62a884.tar.gz
yuzu-014ca709c939512569abc7765b031b496c62a884.tar.bz2
yuzu-014ca709c939512569abc7765b031b496c62a884.tar.lz
yuzu-014ca709c939512569abc7765b031b496c62a884.tar.xz
yuzu-014ca709c939512569abc7765b031b496c62a884.tar.zst
yuzu-014ca709c939512569abc7765b031b496c62a884.zip
Diffstat (limited to '')
-rw-r--r--src/web_service/announce_room_json.cpp10
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