[PATCH 2/2] Fix using g_source_remove intead of g_dbus_remove_watch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux