From fa6cedaa9ba33cc63f2b609c6ac2e01c5d71b69b Mon Sep 17 00:00:00 2001 From: hai007 Date: Wed, 9 Oct 2024 10:01:46 -0700 Subject: [PATCH] [Safe-to-disconnect] Fix a bug that causes Send file from Windows to Android fails PiperOrigin-RevId: 684077190 --- connections/implementation/endpoint_manager.cc | 2 +- connections/implementation/reconnect_manager.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/connections/implementation/endpoint_manager.cc b/connections/implementation/endpoint_manager.cc index 588d4002..59420720 100644 --- a/connections/implementation/endpoint_manager.cc +++ b/connections/implementation/endpoint_manager.cc @@ -337,7 +337,7 @@ void EndpointManager::ProcessDisconnectionFrame( endpoint_id, /* is_safe_to_disconnect */ true, /* notify_stop_waiting */ false); RunOnEndpointManagerThread( - "safe-to-disconnect", [this, client, &endpoint_id]() { + "safe-to-disconnect", [this, client, endpoint_id]() { RemoveEndpoint(client, endpoint_id, /*notify=*/true, DisconnectionReason::REMOTE_DISCONNECTION); }); diff --git a/connections/implementation/reconnect_manager.cc b/connections/implementation/reconnect_manager.cc index 0094178a..c0e5b5c7 100644 --- a/connections/implementation/reconnect_manager.cc +++ b/connections/implementation/reconnect_manager.cc @@ -142,7 +142,7 @@ bool ReconnectManager::Start(bool is_incoming, ClientProxy* client, CountDownLatch latch(1); reconnect_executor_.Execute( "reconnect-start", - [this, &final_result, is_incoming, client, &endpoint_id, + [this, &final_result, is_incoming, client, endpoint_id, &reconnect_service_id, retry_delay_millis, reconnect_retry_num, medium, &latch]() mutable { for (int i = 0; i < reconnect_retry_num; ++i) {