diff --git a/src/hci.c b/src/hci.c index 7ee6b9124..367206b1e 100644 --- a/src/hci.c +++ b/src/hci.c @@ -3289,6 +3289,10 @@ static void hci_run(void){ hci_con_handle_t con_handle = (uint16_t) connection->con_handle; if (!hci_can_send_command_packet_now()) return; + // check state + if (connection->state == SENT_DISCONNECT) return; + connection->state = SENT_DISCONNECT; + log_info("HCI_STATE_HALTING, connection %p, handle %u", connection, con_handle); // cancel all l2cap connections right away instead of waiting for disconnection complete event ...