diff --git a/CHANGELOG.md b/CHANGELOG.md index 886a11b5e..58de533b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed - L2CAP: fix issue with outgoing connection before read remote supported complete when other channels exist +- HFP: decline incoming RFCOMM connection after outgoing connection was started ## Changes September 2018 diff --git a/src/classic/hfp.c b/src/classic/hfp.c index fa9e85c4d..6df55986a 100644 --- a/src/classic/hfp.c +++ b/src/classic/hfp.c @@ -712,7 +712,8 @@ void hfp_handle_rfcomm_event(uint8_t packet_type, uint16_t channel, uint8_t *pac return; } if (hfp_connection->state != HFP_IDLE) { - log_error("hfp: incoming connection but state != HFP_IDLE"); + log_error("hfp: incoming connection but not idle, reject"); + rfcomm_decline_connection(rfcomm_event_incoming_connection_get_rfcomm_cid(packet)); return; }