mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-14 23:50:29 +01:00
active-connection: fail the activation if the master AC disconnect
The master may not have successfully activated even though we know the device
already.
(cherry picked from commit 4078834999)
This commit is contained in:
parent
8c1e848401
commit
17353c1b0a
1 changed files with 3 additions and 2 deletions
|
|
@ -515,6 +515,7 @@ master_state_cb (NMActiveConnection *master,
|
|||
gpointer user_data)
|
||||
{
|
||||
NMActiveConnection *self = NM_ACTIVE_CONNECTION (user_data);
|
||||
NMActiveConnectionPrivate *priv = NM_ACTIVE_CONNECTION_GET_PRIVATE (self);
|
||||
NMActiveConnectionState master_state = nm_active_connection_get_state (master);
|
||||
|
||||
check_master_ready (self);
|
||||
|
|
@ -522,8 +523,8 @@ master_state_cb (NMActiveConnection *master,
|
|||
nm_log_dbg (LOGD_DEVICE, "(%p): master ActiveConnection [%p] state now '%s' (%d)",
|
||||
self, master, state_to_string (master_state), master_state);
|
||||
|
||||
if (master_state == NM_ACTIVE_CONNECTION_STATE_DEACTIVATING &&
|
||||
nm_active_connection_get_device (master) == NULL) {
|
||||
if ( master_state >= NM_ACTIVE_CONNECTION_STATE_DEACTIVATING
|
||||
&& !priv->master_ready) {
|
||||
/* Master failed without ever creating its device */
|
||||
if (NM_ACTIVE_CONNECTION_GET_CLASS (self)->master_failed)
|
||||
NM_ACTIVE_CONNECTION_GET_CLASS (self)->master_failed (self);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue