Return-Path: MIME-Version: 1.0 In-Reply-To: References: <1337688756-1938-1-git-send-email-mikel.astiz.oss@gmail.com> From: Lucas De Marchi Date: Tue, 22 May 2012 09:52:30 -0300 Message-ID: Subject: Re: [PATCH BlueZ v0] gdbus: Fix incorrectly discarded signals To: Luiz Augusto von Dentz Cc: Mikel Astiz , linux-bluetooth@vger.kernel.org, Mikel Astiz Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: On Tue, May 22, 2012 at 9:28 AM, Luiz Augusto von Dentz wrote: > Hi Mikel, Lucas, > > On Tue, May 22, 2012 at 3:21 PM, Lucas De Marchi > wrote: >>> diff --git a/gdbus/object.c b/gdbus/object.c >>> index 2dd7c0e..c33df57 100644 >>> --- a/gdbus/object.c >>> +++ b/gdbus/object.c >>> @@ -616,7 +616,7 @@ static gboolean check_signal(DBusConnection *conn, const char *path, >>> ? ? ? ? ? ? ? ?} >>> ? ? ? ?} >>> >>> - ? ? ? if (*args == NULL) { >>> + ? ? ? if (!signal || !signal->name) { >>> ? ? ? ? ? ? ? ?error("No signal named %s on interface %s", name, interface); >>> ? ? ? ? ? ? ? ?return FALSE; >>> ? ? ? ?} >> >> >> Ack. >> > > Any reason why the code does not return TRUE within the for loop? I > think it would have been simpler that way. Indeed, it would be much better. Mikel, could you change this? Thanks Lucas De Marchi