summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
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;
}