[PATCH 3/4] dbus-client: fix removal of client watch

Christian Eggers <[email protected]> Wed, 25 Jun 2025 15:14:31 +0200
Newsgroups dev.linux.lists.ell
Message-ID <[email protected]>
The client watch is of type 'service watch' (rather than 'signal
watch'). Use the correct remove function, otherwise the watch is
actually not removed.
---
 ell/dbus-client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ell/dbus-client.c b/ell/dbus-client.c
index 61f068fe66b1..c191c732ffa3 100644
--- a/ell/dbus-client.c
+++ b/ell/dbus-client.c
@@ -617,7 +617,7 @@ LIB_EXPORT void l_dbus_client_destroy(struct l_dbus_client *client)
 		return;
 
 	if (client->watch)
-		l_dbus_remove_signal_watch(client->dbus, client->watch);
+		l_dbus_remove_watch(client->dbus, client->watch);
 
 	if (client->added_watch)
 		l_dbus_remove_signal_watch(client->dbus, client->added_watch);
-- 
2.43.0