Address review: latch the retry only for the current subscriber

A gate-refused send to a peer that is not api_connection_ (the
subscribe-time path during a handover) must not arm a retry that
loop() would aim at a different connection.
This commit is contained in:
J. Nick Koston
2026-08-09 17:34:33 -05:00
parent a292aa2654
commit 321b00143d
@@ -647,7 +647,8 @@ void BluetoothProxy::send_connections_free() {
}
void BluetoothProxy::send_connections_free(api::APIConnection *api_connection) {
if (!api_connection->send_message(this->connections_free_response_)) {
// Latch only for the current subscriber: loop() resends to api_connection_.
if (!api_connection->send_message(this->connections_free_response_) && api_connection == this->api_connection_) {
// V like the api layer's own buffer-full log: a D would ride the same
// full connection.
ESP_LOGV(TAG, "Connections-free update deferred, TCP buffer full");