mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Fix a number of Auth crashes by upgrading the callbacks to almost pure functions
PiperOrigin-RevId: 532556608
This commit is contained in:
@@ -38,7 +38,7 @@ void NearbyHttpClient::StartRequest(
|
||||
CleanThreads();
|
||||
|
||||
std::future<void> 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<HttpResponse> response = InternalGetResponse(request);
|
||||
|
||||
Reference in New Issue
Block a user