summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-rfcomm.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/dbus-rfcomm.c')
-rw-r--r--hcid/dbus-rfcomm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/dbus-rfcomm.c b/hcid/dbus-rfcomm.c
index 5a893898..515a55aa 100644
--- a/hcid/dbus-rfcomm.c
+++ b/hcid/dbus-rfcomm.c
@@ -102,7 +102,7 @@ static void rfcomm_node_free(struct rfcomm_node *node)
if (node->owner)
free(node->owner);
if (node->io) {
- g_io_remove_watch(node->io_id);
+ g_source_remove(node->io_id);
g_io_channel_unref(node->io);
}
if (node->conn)