mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 02:28:18 +02: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)) {
|
for (iter = connections; iter; iter = g_slist_next (iter)) {
|
||||||
connection = NM_CONNECTION (iter->data);
|
connection = NM_CONNECTION (iter->data);
|
||||||
|
|
||||||
if (available_connections_add (self, connection)) {
|
if (nm_device_check_connection_available (self,
|
||||||
if (prune_list)
|
connection,
|
||||||
g_hash_table_remove (prune_list, connection);
|
NM_DEVICE_CHECK_CON_AVAILABLE_NONE,
|
||||||
changed = TRUE;
|
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