2012-11-30 23:37:05

by Vinicius Costa Gomes

[permalink] [raw]
Subject: [PATCH BlueZ] input: Fix emitting a signal for a non-existant interface

When the 'org.bluez.Input' interface was removed, this should have been
removed as well, now it is causing a segmentation fault.
---
profiles/input/device.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/profiles/input/device.c b/profiles/input/device.c
index 2871cc3..421af64 100644
--- a/profiles/input/device.c
+++ b/profiles/input/device.c
@@ -503,9 +503,6 @@ static int input_device_connected(struct input_device *idev)
if (err < 0)
return err;

- g_dbus_emit_property_changed(idev->conn, idev->path,
- INPUT_DEVICE_INTERFACE, "Connected");
-
idev->dc_id = device_add_disconnect_watch(idev->device, disconnect_cb,
idev, NULL);

--
1.8.0



2012-11-30 23:45:09

by Vinicius Costa Gomes

[permalink] [raw]
Subject: Re: [PATCH BlueZ] input: Fix emitting a signal for a non-existant interface

Hi,

On Fri, Nov 30, 2012 at 8:37 PM, Vinicius Costa Gomes
<[email protected]> wrote:
> When the 'org.bluez.Input' interface was removed, this should have been
> removed as well, now it is causing a segmentation fault.
> ---

Please ignore this patch. I didn't notice that the signal is emitted
in another place too. Updated version coming soon.


Cheers,
--
Vinicius