diff options
Diffstat (limited to 'hcid/adapter.c')
-rw-r--r-- | hcid/adapter.c | 5 |
1 files 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, |