Skip to content

Commit

Permalink
bluez.Manager: Add destroy method
Browse files Browse the repository at this point in the history
This drops the refcount and python destroys the DBusObjectManager
  • Loading branch information
infirit committed Dec 30, 2024
1 parent 6c6fbfa commit bd3352c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blueman/bluez/Manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ def find_device(self, address: BtAddress, adapter_path: ObjectPath = ObjectPath(
return device
return None

def destroy(self) -> None:
if self._object_manager:
del self._object_manager

@classmethod
def watch_name_owner(
cls,
Expand Down

0 comments on commit bd3352c

Please sign in to comment.