Re: [PATCH RFC] gdbus: Remove proxies when client disconnects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 22, 2013 at 6:51 PM, Henrique Dante de Almeida
<hdante@xxxxxxxxxxxxxx> wrote:
> Remove proxies and generate proxy_removed callbacks even when there are
> no corresponding InterfaceRemoved signals.
>
> Change-Id: I4fe534cd152f98db00d3462f4d7eaaa41b69bdf3

 gerrit hook, sending again

> ---
>  gdbus/client.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/gdbus/client.c b/gdbus/client.c
> index f700b7e..d80e252 100644
> --- a/gdbus/client.c
> +++ b/gdbus/client.c
> @@ -1153,6 +1153,10 @@ static DBusHandlerResult message_filter(DBusConnection *connection,
>
>                 if (*new == '\0' && client->unique_name != NULL &&
>                                 g_str_equal(old, client->unique_name) == TRUE) {
> +
> +                       g_list_free_full(client->proxy_list, proxy_free);
> +                       client->proxy_list = NULL;
> +
>                         if (client->disconn_func)
>                                 client->disconn_func(client->dbus_conn,
>                                                         client->disconn_data);
> --
> 1.8.2.3
>
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux