summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-adapter.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/dbus-adapter.c')
-rw-r--r--hcid/dbus-adapter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c
index 50a28a57..8699499a 100644
--- a/hcid/dbus-adapter.c
+++ b/hcid/dbus-adapter.c
@@ -539,7 +539,7 @@ static DBusHandlerResult adapter_set_discoverable_to(DBusConnection *conn,
return DBUS_HANDLER_RESULT_NEED_MEMORY;
if (adapter->timeout_id) {
- g_timeout_remove(adapter->timeout_id);
+ g_source_remove(adapter->timeout_id);
adapter->timeout_id = 0;
}