diff options
author | Luiz Augusto von Dentz <luiz.dentz-von@nokia.com> | 2011-01-28 15:17:39 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-01-28 15:29:24 +0200 |
commit | 10d0cf3e4668463bc0164b12e7d8ed946a0ef8d9 (patch) | |
tree | 4f42a12b00641742cced91449d5b2adbb4fe80b4 /plugins/usb.c | |
parent | 9a41e45225693dc4ff1c461b57286eb86b8c985a (diff) | |
download | obexd-10d0cf3e4668463bc0164b12e7d8ed946a0ef8d9.tar.gz |
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.
Diffstat (limited to 'plugins/usb.c')
-rw-r--r-- | 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) |