Raise an exception when an L2cap connection fails

This commit is contained in:
Hui Peng
2023-09-06 19:49:03 -07:00
committed by Lucas Abel
parent 9303f4fc5b
commit acdbc4d7b9

View File

@@ -2078,7 +2078,8 @@ class ChannelManager:
# Connect # Connect
try: try:
await channel.connect() await channel.connect()
except Exception: except Exception as e:
del connection_channels[source_cid] del connection_channels[source_cid]
raise e
return channel return channel