mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
[Safe-to-disconnect] Fix a bug that causes Send file from Windows to Android fails
PiperOrigin-RevId: 684077190
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user