Swap arguments to ConnectionError in RFCOMM Multiplexer

Minor fixup. Change the order of arguments to ConnectionError to set the
transport and address correctly in rfcomm.py on_dm_frame().
This commit is contained in:
Michael Mogenson
2022-11-18 10:02:40 -05:00
parent f2133235d5
commit e6c062117f

View File

@@ -636,8 +636,8 @@ class Multiplexer(EventEmitter):
if self.open_result:
self.open_result.set_exception(ConnectionError(
ConnectionError.CONNECTION_REFUSED,
self.l2cap_channel.connection.peer_address,
BT_BR_EDR_TRANSPORT,
self.l2cap_channel.connection.peer_address,
'rfcomm'
))
else: