Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Changed

Fixed
-----
* Fixed file handle leak in BlueZ backend when D-Bus connection is lost and re-established.
* Fixed crash in CoreBluetooth backend if an ObjC delegate callback is called after the asyncio run loop stops.
* Fixed possible deadlock when starting scanning on Windows when Bluetooth is turned off.
* Fixed "Bluetooth device is turned off" Exception on macOS, when a Bluetooth permission request popup is shown to the user by the OS.
Expand Down
5 changes: 5 additions & 0 deletions bleak/backends/bluezdbus/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,11 @@ async def async_init(self) -> None:
bus.disconnect()
raise

if self._bus:
# Even if we are disconnected, still need to call this to
# release file handles.
self._bus.disconnect()

# Everything is setup, so save the bus
self._bus = bus

Expand Down
Loading