mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-15 15:04:34 +08:00
core: Set implicit default agent when first agent registers
This commit is contained in:
parent
39036db684
commit
166931cf49
@ -934,6 +934,9 @@ static DBusMessage *register_agent(DBusConnection *conn,
|
||||
|
||||
g_hash_table_replace(agent_list, agent->owner, agent);
|
||||
|
||||
if (default_agent == NULL)
|
||||
set_default_agent(agent);
|
||||
|
||||
return dbus_message_new_method_return(msg);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user