From: Luiz Augusto von Dentz <luiz.dentz-von@xxxxxxxxx> Watches created with g_dbus_add_signal_watch cannot be removed with g_source_remove. --- plugins/usb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/plugins/usb.c b/plugins/usb.c index 580e7b8..466dc99 100644 --- a/plugins/usb.c +++ b/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) -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html