mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Move accept timer cancellation back to when Accept is sent.
PiperOrigin-RevId: 655682894
This commit is contained in:
committed by
Copybara-Service
parent
cdc55f9e83
commit
357635251d
@@ -218,6 +218,10 @@ bool IncomingShareSession::AcceptTransfer(
|
||||
NL_LOG(WARNING) << __func__ << ": out of order API call.";
|
||||
return false;
|
||||
}
|
||||
// TODO(b/355199584): Cancel acceptance timer when Accept is sent.
|
||||
// This is the wrong place to cancel since we are actually waiting for sender
|
||||
// to accept. If sender does not accept, we will never timeout.
|
||||
mutual_acceptance_timeout_.reset();
|
||||
ready_for_accept_ = false;
|
||||
const absl::flat_hash_map<int64_t, int64_t>& payload_map =
|
||||
attachment_payload_map();
|
||||
|
||||
Reference in New Issue
Block a user