From 275743e462f81c808cc1b59459d4da7f8ddead9e Mon Sep 17 00:00:00 2001 From: hai007 Date: Tue, 16 May 2023 13:25:09 -0700 Subject: [PATCH] Fix a number of Auth crashes by upgrading the callbacks to almost pure functions PiperOrigin-RevId: 532556608 --- internal/network/http_client_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/network/http_client_impl.cc b/internal/network/http_client_impl.cc index ef74495a..a5dbacc1 100644 --- a/internal/network/http_client_impl.cc +++ b/internal/network/http_client_impl.cc @@ -38,7 +38,7 @@ void NearbyHttpClient::StartRequest( CleanThreads(); std::future http_thread = std::async( - std::launch::async, [&, request, callback = std::move(callback)]() { + std::launch::async, [=]() { NEARBY_LOGS(INFO) << __func__ << ": Start async request to url=" << request.GetUrl().GetUrlPath(); absl::StatusOr response = InternalGetResponse(request);