mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 01:10:08 +01:00
wifi/iwd: print warning if known network exists in interface-added
Something is possibly wrong with the DBus signal handling if a newly added KnownNetwork interface already has an entry in priv->known_networks, but since we handle this case add a warning and update the GDBusProxy pointer for that existing entry.
This commit is contained in:
parent
ba52c4ea0a
commit
b98f269b91
1 changed files with 5 additions and 2 deletions
|
|
@ -544,9 +544,12 @@ interface_added (GDBusObjectManager *object_manager, GDBusObject *object,
|
|||
id = known_network_id_new (name, security);
|
||||
|
||||
data = g_hash_table_lookup (priv->known_networks, id);
|
||||
if (data)
|
||||
if (data) {
|
||||
_LOGW ("DBus error: KnownNetwork already exists ('%s', %s)",
|
||||
name, type_str);
|
||||
g_free (id);
|
||||
else {
|
||||
nm_g_object_ref_set (&data->known_network, proxy);
|
||||
} else {
|
||||
data = g_slice_new0 (KnownNetworkData);
|
||||
data->known_network = g_object_ref (proxy);
|
||||
g_hash_table_insert (priv->known_networks, id, data);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue