mirror of git://git.sysmocom.de/ofono
gdbus: Use destroy callback for service watch
Even though service watches accepted a "destroy" callback, they were being ignored. This fix properly pass them along so they are called when the watch is removed.
This commit is contained in:
parent
2f232f8b02
commit
9b26016a24
|
@ -666,7 +666,7 @@ guint g_dbus_add_service_watch(DBusConnection *connection, const char *name,
|
|||
if (data == NULL)
|
||||
return 0;
|
||||
|
||||
cb = filter_data_add_callback(data, connect, disconnect, NULL, NULL,
|
||||
cb = filter_data_add_callback(data, connect, disconnect, NULL, destroy,
|
||||
user_data);
|
||||
if (cb == NULL)
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue