summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2008-09-11 17:52:08 -0300
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2008-09-12 20:34:42 -0300
commitd516f96d8b123b36e0def74cce827026f100d379 (patch)
tree764662c4a5f3fcb350fccdba77265b4b59a4742a /input
parentfab3fc02f88cadf2766e1859802d9c5419d131bf (diff)
Input: Missing send the message when connect fails
Diffstat (limited to 'input')
-rw-r--r--input/device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/input/device.c b/input/device.c
index 1726ed97..94dfef51 100644
--- a/input/device.c
+++ b/input/device.c
@@ -755,6 +755,7 @@ static void control_connect_cb(GIOChannel *chan, int err, const bdaddr_t *src,
{
struct input_conn *iconn = user_data;
struct input_device *idev = iconn->idev;
+ DBusMessage *reply;
if (err < 0) {
error("connect(): %s (%d)", strerror(-err), -err);
@@ -776,7 +777,8 @@ static void control_connect_cb(GIOChannel *chan, int err, const bdaddr_t *src,
failed:
iconn->ctrl_sk = -1;
- connection_attempt_failed(iconn->pending_connect, -err);
+ reply = connection_attempt_failed(iconn->pending_connect, -err);
+ g_dbus_send_message(idev->conn, reply);
dbus_message_unref(iconn->pending_connect);
iconn->pending_connect = NULL;
}