aioble: Raise correct error if l2cap disconnects in middle of send.

Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
Andrew Leech 2025-05-07 21:19:43 +10:00
rodzic 68e3e07bc7
commit 7e1c9cf905
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -141,6 +141,7 @@ class L2CAPChannel:
if self._stalled:
await self.flush(timeout_ms)
# l2cap_send returns True if you can send immediately.
self._assert_connected()
self._stalled = not ble.l2cap_send(
self._connection._conn_handle,
self._cid,