mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 21:50:17 +01:00
device: fix handling of available connections
The prune list is for elements that must be deleted from the list of
available connections. So, when processing all the existing
connections an element must be deleted from the prune list iff it's
available.
Fixes: 8b2abe0e2c
https://bugzilla.redhat.com/show_bug.cgi?id=1316488
This commit is contained in:
parent
7037e0b374
commit
ca5da5d80f
1 changed files with 5 additions and 6 deletions
|
|
@ -9664,14 +9664,13 @@ nm_device_recheck_available_connections (NMDevice *self)
|
|||
connection = NM_CONNECTION (iter->data);
|
||||
|
||||
if (nm_device_check_connection_available (self,
|
||||
connection,
|
||||
NM_DEVICE_CHECK_CON_AVAILABLE_NONE,
|
||||
NULL)) {
|
||||
connection,
|
||||
NM_DEVICE_CHECK_CON_AVAILABLE_NONE,
|
||||
NULL)) {
|
||||
if (available_connections_add (self, connection))
|
||||
changed = TRUE;
|
||||
} else {
|
||||
if (prune_list && g_hash_table_remove (prune_list, connection))
|
||||
changed = TRUE;
|
||||
if (prune_list)
|
||||
g_hash_table_remove (prune_list, connection);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue