mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 14:00:11 +01:00
Merge branch 'ac/fix_startup_complete'
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/400
This commit is contained in:
commit
abcf8d5245
2 changed files with 10 additions and 0 deletions
|
|
@ -15541,6 +15541,12 @@ _set_state_full (NMDevice *self,
|
|||
reason_to_string_a (reason),
|
||||
_sys_iface_state_to_str (priv->sys_iface_state));
|
||||
|
||||
/* in order to prevent triggering any callback caused
|
||||
* by the device not having any pending action anymore
|
||||
* we add one here that gets removed at the end of the function */
|
||||
nm_device_add_pending_action (self,
|
||||
NM_PENDING_ACTION_IN_STATE_CHANGE,
|
||||
TRUE);
|
||||
priv->in_state_changed = TRUE;
|
||||
|
||||
priv->state = state;
|
||||
|
|
@ -15844,6 +15850,9 @@ _set_state_full (NMDevice *self,
|
|||
concheck_update_interval (self, AF_INET6, concheck_now);
|
||||
|
||||
priv->in_state_changed = FALSE;
|
||||
nm_device_remove_pending_action (self,
|
||||
NM_PENDING_ACTION_IN_STATE_CHANGE,
|
||||
TRUE);
|
||||
|
||||
if ((old_state > NM_DEVICE_STATE_UNMANAGED) != (state > NM_DEVICE_STATE_UNMANAGED))
|
||||
_notify (self, PROP_MANAGED);
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ nm_device_state_reason_check (NMDeviceStateReason reason)
|
|||
}
|
||||
|
||||
#define NM_PENDING_ACTION_AUTOACTIVATE "autoactivate"
|
||||
#define NM_PENDING_ACTION_IN_STATE_CHANGE "in-state-change"
|
||||
#define NM_PENDING_ACTION_RECHECK_AVAILABLE "recheck-available"
|
||||
#define NM_PENDING_ACTION_CARRIER_WAIT "carrier-wait"
|
||||
#define NM_PENDING_ACTION_WAITING_FOR_SUPPLICANT "waiting-for-supplicant"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue