mirror of
https://github.com/google/bumble.git
synced 2026-04-16 00:25:31 +00:00
Cleanup legacy L2CAP API
This commit is contained in:
@@ -296,7 +296,7 @@ class Speaker:
|
||||
self.device.on('key_store_update', self.on_key_store_update)
|
||||
|
||||
# Create a listener to wait for AVDTP connections
|
||||
self.listener = Listener(Listener.create_registrar(self.device))
|
||||
self.listener = Listener.for_device(self.device)
|
||||
self.listener.on('connection', self.on_avdtp_connection)
|
||||
|
||||
print(f'Speaker ready to play, codec={self.codec}')
|
||||
|
||||
Reference in New Issue
Block a user