mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-30 15:32:41 +00:00
avdtp: reset configuration state on media channel closed
This commit is contained in:
parent
b3b67de40a
commit
7f162947d9
@ -942,6 +942,7 @@ void avdtp_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet
|
||||
avdtp_local_seid(stream_endpoint));
|
||||
}
|
||||
avdtp_reset_stream_endpoint(stream_endpoint);
|
||||
connection->configuration_state = AVDTP_CONFIGURATION_STATE_IDLE;
|
||||
break;
|
||||
}
|
||||
if (stream_endpoint->l2cap_recovery_cid == local_cid){
|
||||
@ -972,9 +973,6 @@ void avdtp_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet
|
||||
}
|
||||
break;
|
||||
|
||||
case HCI_EVENT_DISCONNECTION_COMPLETE:
|
||||
break;
|
||||
|
||||
case L2CAP_EVENT_CAN_SEND_NOW:
|
||||
log_debug("avdtp_packet_handler, L2CAP_EVENT_CAN_SEND_NOW l2cap_cid 0x%02x", channel);
|
||||
connection = avdtp_get_connection_for_l2cap_signaling_cid(channel);
|
||||
|
Loading…
x
Reference in New Issue
Block a user