From 9ee36f218317a0a51332d60606d3703b5b7e7faa Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 28 Jan 2011 15:17:39 +0200 Subject: [PATCH] obexd: Fix using g_source_remove intead of g_dbus_remove_watch Watches created with g_dbus_add_signal_watch cannot be removed with g_source_remove. --- obexd/plugins/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/plugins/usb.c b/obexd/plugins/usb.c index 580e7b89c..466dc99d2 100644 --- a/obexd/plugins/usb.c +++ b/obexd/plugins/usb.c @@ -201,7 +201,7 @@ static gboolean handle_signal(DBusConnection *connection, static void usb_stop(void *data) { guint id = GPOINTER_TO_UINT(data); - g_source_remove(id); + g_dbus_remove_watch(connection, id); } static void mode_request_reply(DBusPendingCall *call, void *user_data) -- 2.47.3