diff options
Diffstat (limited to 'src/web_service/announce_room_json.cpp')
| -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() { | |||
| 135 | LOG_ERROR(WebService, "Room must be registered to be deleted"); | 135 | LOG_ERROR(WebService, "Room must be registered to be deleted"); |
| 136 | return; | 136 | return; |
| 137 | } | 137 | } |
| 138 | Common::DetachedTasks::AddTask( | 138 | Common::DetachedTasks::AddTask([host_{this->host}, username_{this->username}, |
| 139 | [host{this->host}, username{this->username}, token{this->token}, room_id{this->room_id}]() { | 139 | token_{this->token}, room_id_{this->room_id}]() { |
| 140 | // create a new client here because the this->client might be destroyed. | 140 | // create a new client here because the this->client might be destroyed. |
| 141 | Client{host, username, token}.DeleteJson(fmt::format("/lobby/{}", room_id), "", false); | 141 | Client{host_, username_, token_}.DeleteJson(fmt::format("/lobby/{}", room_id_), "", false); |
| 142 | }); | 142 | }); |
| 143 | } | 143 | } |
| 144 | 144 | ||
| 145 | } // namespace WebService | 145 | } // namespace WebService |