mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-01-04 18:00:19 +01:00
manager: Fix unexport of removed devices
The correct way to unexport the object again is to unexported it on the manager rather than on the interface skeleton. This fixes notifications about device removal on DBus.
This commit is contained in:
parent
6eb9f263fd
commit
08fb209aed
1 changed files with 3 additions and 2 deletions
|
|
@ -249,8 +249,9 @@ device_removed_cb (FprintManager *manager, FpDevice *device, FpContext *context)
|
|||
if (dev != device)
|
||||
continue;
|
||||
|
||||
g_dbus_interface_skeleton_unexport (
|
||||
G_DBUS_INTERFACE_SKELETON (rdev));
|
||||
g_dbus_object_manager_server_unexport (
|
||||
G_DBUS_OBJECT_MANAGER_SERVER (priv->object_manager),
|
||||
g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (rdev)));
|
||||
|
||||
g_signal_handlers_disconnect_by_data (rdev, manager);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue