From 4b6566781a189c203484d92cb22154ba914fbc82 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Thu, 10 Jul 2008 13:58:14 -0300 Subject: [PATCH] obexd: Calls Agent.Cancel() when some error occurs during Authorization. --- obexd/src/manager.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/obexd/src/manager.c b/obexd/src/manager.c index da11cb6fa..4c72ff63f 100644 --- a/obexd/src/manager.c +++ b/obexd/src/manager.c @@ -463,8 +463,15 @@ static void agent_reply(DBusPendingCall *call, gpointer user_data) static gboolean auth_error(GIOChannel *io, GIOCondition cond, gpointer user_data) { + DBusMessage *msg; + agent->auth_pending = FALSE; + msg = dbus_message_new_method_call(agent->bus_name, agent->path, + "org.openobex.Agent", "Cancel"); + + dbus_connection_send_with_reply(connection, msg, NULL, -1); + return FALSE; } -- 2.47.3