update metadata when setting the host controller directly

This commit is contained in:
Gilles Boccon-Gibod
2024-03-12 11:50:47 -07:00
parent cbe9446dcf
commit 7507be1eab
2 changed files with 2 additions and 2 deletions

View File

@@ -498,7 +498,7 @@ class Host(AbortableEventEmitter):
def controller(self, controller) -> None:
self.set_packet_sink(controller)
if controller:
controller.set_packet_sink(self)
self.set_packet_source(controller)
def set_packet_sink(self, sink: Optional[TransportSink]) -> None:
self.hci_sink = sink