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:00:29 +02:00
parent 63b7463190
commit e80b814d7d

View File

@ -291,7 +291,7 @@ static void hci_transport_h4_block_read(void){
case H4_OFF:
bytes_to_read = 0;
return;
break;
}
#ifdef ENABLE_BAUDRATE_CHANGE_FLOWCONTROL_BUG_WORKAROUND
@ -303,7 +303,9 @@ static void hci_transport_h4_block_read(void){
}
#endif
hci_transport_h4_trigger_next_read();
if (h4_state != H4_OFF) {
hci_transport_h4_trigger_next_read();
}
}
static void hci_transport_h4_block_sent(void){