From 09364c9d3f0f0c80822567333887a917f44bbc94 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Tue, 11 Nov 2008 18:50:08 -0300 Subject: [PATCH] obexd: Do not remove owner watch in the disconnect remove watch callback --- obexd/client/session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/obexd/client/session.c b/obexd/client/session.c index 003c7f62b..9e1ae25a3 100644 --- a/obexd/client/session.c +++ b/obexd/client/session.c @@ -735,8 +735,6 @@ static DBusMessage *release_agent(DBusConnection *connection, static void session_shutdown(struct session_data *session) { - g_dbus_remove_watch(session->conn, session->owner_watch); - if (session->transfer_path) { agent_notify_error(session->conn, session->agent_name, session->agent_path, session->transfer_path, @@ -780,6 +778,8 @@ static DBusMessage *close_session(DBusConnection *connection, "org.openobex.Error.NotAuthorized", "Not Authorized"); + g_dbus_remove_watch(session->conn, session->owner_watch); + session_shutdown(session); return dbus_message_new_method_return(message); -- 2.47.3