[Safe-to-disconnect] Fix a bug that causes Send file from Windows to Android fails

PiperOrigin-RevId: 684077190
This commit is contained in:
hai007
2024-10-09 10:03:04 -07:00
committed by Copybara-Service
parent b721624851
commit fa6cedaa9b
2 changed files with 2 additions and 2 deletions
@@ -337,7 +337,7 @@ void EndpointManager::ProcessDisconnectionFrame(
endpoint_id, /* is_safe_to_disconnect */ true, endpoint_id, /* is_safe_to_disconnect */ true,
/* notify_stop_waiting */ false); /* notify_stop_waiting */ false);
RunOnEndpointManagerThread( RunOnEndpointManagerThread(
"safe-to-disconnect", [this, client, &endpoint_id]() { "safe-to-disconnect", [this, client, endpoint_id]() {
RemoveEndpoint(client, endpoint_id, /*notify=*/true, RemoveEndpoint(client, endpoint_id, /*notify=*/true,
DisconnectionReason::REMOTE_DISCONNECTION); DisconnectionReason::REMOTE_DISCONNECTION);
}); });
@@ -142,7 +142,7 @@ bool ReconnectManager::Start(bool is_incoming, ClientProxy* client,
CountDownLatch latch(1); CountDownLatch latch(1);
reconnect_executor_.Execute( reconnect_executor_.Execute(
"reconnect-start", "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, &reconnect_service_id, retry_delay_millis, reconnect_retry_num, medium,
&latch]() mutable { &latch]() mutable {
for (int i = 0; i < reconnect_retry_num; ++i) { for (int i = 0; i < reconnect_retry_num; ++i) {