mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02: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:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user