Skip to content

Fix connect handler leak#83

Closed
LiterallyVoid wants to merge 3 commits intochrvadala:mainfrom
LiterallyVoid:literallyvoid/fix-connect-handler-leak
Closed

Fix connect handler leak#83
LiterallyVoid wants to merge 3 commits intochrvadala:mainfrom
LiterallyVoid:literallyvoid/fix-connect-handler-leak

Conversation

@LiterallyVoid
Copy link

Previously, every time a device was connected and disconnected, the connect and disconnect events would fire more times per underlying event.

This does change visible behavior: if the device is connected/disconnected externally (e.g. via bluetoothctl), the connect and disconnect events will be fired before Device.connect() has been called.

@LiterallyVoid LiterallyVoid marked this pull request as draft September 24, 2025 22:01
@LiterallyVoid
Copy link
Author

Nevermind, this introduces a new issue where, I think, the PropertiesChanged listener breaks when a device is lost and rediscovered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant