From 32af3c8695e06c519513c55411c13de4123db980 Mon Sep 17 00:00:00 2001 From: Cidorvan Leite Date: Tue, 15 Apr 2008 21:36:37 +0000 Subject: Fixed remove temporary device --- hcid/adapter.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hcid/adapter.c b/hcid/adapter.c index 3f8be357..4be0f914 100644 --- a/hcid/adapter.c +++ b/hcid/adapter.c @@ -250,8 +250,6 @@ static struct bonding_request_info *bonding_request_new(DBusConnection *conn, if (!device) return NULL; - device->temporary = TRUE; - if (agent_path && strcmp(agent_path, "/")) device->agent = agent_create(adapter, dbus_message_get_sender(msg), agent_path, @@ -2452,7 +2450,8 @@ void remove_pending_device(struct adapter *adapter) if (!device) return; - adapter_remove_device(adapter->bonding->conn, adapter, device); + if (device->temporary) + adapter_remove_device(adapter->bonding->conn, adapter, device); } static gboolean create_bonding_conn_complete(GIOChannel *io, GIOCondition cond, -- cgit