Skip to content

Commit

Permalink
[sdk] Fix dangling reference
Browse files Browse the repository at this point in the history
  • Loading branch information
mcopik committed Oct 17, 2024
1 parent 1484e3c commit dce20c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/praas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ namespace praas::sdk {
auto http_client = _get_client();
http_client.handle()->sendRequest(
req,
[&, p=std::move(p)](drogon::ReqResult result, const drogon::HttpResponsePtr& response) {
[=, p=std::move(p)](drogon::ReqResult result, const drogon::HttpResponsePtr& response) {
spdlog::info("Received callback Created process");
if (result == drogon::ReqResult::Ok && response->getStatusCode() == drogon::k200OK) {
auto& json_obj = *response->getJsonObject();
Expand Down

0 comments on commit dce20c6

Please sign in to comment.