mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 11:00:09 +01:00
device: check avaliable connections are really available
The nm_device_check_connection_available() call seem to have been accidentally
removed from nm_device_recheck_available_connections() resulting in all
connections always being added.
Fixes 02ec76df5a
This commit is contained in:
parent
7bb491c84e
commit
8b2abe0e2c
1 changed files with 9 additions and 4 deletions
|
|
@ -9354,10 +9354,15 @@ nm_device_recheck_available_connections (NMDevice *self)
|
|||
for (iter = connections; iter; iter = g_slist_next (iter)) {
|
||||
connection = NM_CONNECTION (iter->data);
|
||||
|
||||
if (available_connections_add (self, connection)) {
|
||||
if (prune_list)
|
||||
g_hash_table_remove (prune_list, connection);
|
||||
changed = TRUE;
|
||||
if (nm_device_check_connection_available (self,
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue