Skip to content

Commit

Permalink
emit flush event when transport lost
Browse files Browse the repository at this point in the history
  • Loading branch information
barbibulle committed Aug 18, 2023
1 parent 2bfec3c commit 623298b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bumble/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ def on_transport_lost(self):
if self.pending_response:
self.pending_response.set_exception(TransportLostError('transport lost'))

self.emit('flush')

def on_hci_packet(self, packet):
logger.debug(f'{color("### CONTROLLER -> HOST", "green")}: {packet}')

Expand Down

0 comments on commit 623298b

Please sign in to comment.