Commit 365483ae authored by Zeeshan Ali's avatar Zeeshan Ali

service: Fix check for bus name match

Fixes #97.
parent 2c9ef392
Pipeline #13415 passed with stage
in 2 minutes and 37 seconds
......@@ -114,9 +114,13 @@ on_peer_vanished (GClueClientInfo *info,
l = priv->clients;
while (l != NULL) {
GList *next = l->next;
GClueClientInfo *i;
i = gclue_service_client_get_client_info
(GCLUE_SERVICE_CLIENT (l->data));
if (g_strcmp0 (bus_name,
gclue_client_info_get_bus_name (info)) == 0) {
gclue_client_info_get_bus_name (i)) == 0) {
g_object_unref (G_OBJECT (l->data));
priv->clients = g_list_remove_link (priv->clients, l);
priv->num_clients--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment