hci_transport_h4: avoid calling hci_transport_h4_trigger_next_read when transport is closed

This commit is contained in:
Matthias Ringwald 2019-09-13 15:12:00 +02:00
parent e80b814d7d
commit 067de866b0

View File

@ -285,8 +285,9 @@ static void hci_transport_h4_block_read(void){
#endif
}
#endif
packet_handler(hci_packet[0], &hci_packet[1], read_pos-1);
// reset state machine before delivering packet to stack as it might close the transport
hci_transport_h4_reset_statemachine();
packet_handler(hci_packet[0], &hci_packet[1], read_pos-1);
break;
case H4_OFF: