mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 15:40:10 +01:00
device: the unrealized devices can attempt to autoconnect
This commit is contained in:
parent
71f92bf72d
commit
cdc8a92b37
1 changed files with 5 additions and 1 deletions
|
|
@ -2654,7 +2654,11 @@ nm_device_autoconnect_allowed (NMDevice *self)
|
|||
GValue instance = G_VALUE_INIT;
|
||||
GValue retval = G_VALUE_INIT;
|
||||
|
||||
if (priv->state < NM_DEVICE_STATE_DISCONNECTED || !priv->autoconnect)
|
||||
if (!priv->autoconnect)
|
||||
return FALSE;
|
||||
|
||||
/* Unrealized devices can always autoconnect. */
|
||||
if (nm_device_is_real (self) && priv->state < NM_DEVICE_STATE_DISCONNECTED)
|
||||
return FALSE;
|
||||
|
||||
/* The 'autoconnect-allowed' signal is emitted on a device to allow
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue