Branch: refs/heads/master Home: https://github.com/bluez/bluez Commit: c159d790e8786581cfa5e5a9e7bd71458a343e44 https://github.com/bluez/bluez/commit/c159d790e8786581cfa5e5a9e7bd71458a343e44 Author: Archie Pusaka <apusaka@xxxxxxxxxxxx> Date: 2022-05-18 (Wed, 18 May 2022) Changed paths: M profiles/input/device.c Log Message: ----------- input/device: Notify failure if ctrl disconnect when waiting intr On some rare occasions, the peer HID device might disconnect the ctrl channel when we are trying to connect the intr channel. If this happens, interrupt_connect_cb() will not be called by btio, and we will be stuck in "connecting" state. Any future connection attempt to the peer device will fail because of "busy". This patch prevents that by checking if we need to report connection failure when the ctrl channel is disconnected. Reviewed-by: Sonny Sasaka <sonnysasaka@xxxxxxxxxxxx>