mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 15:50:07 +01:00
device: assert that master-ready handler is not scheduled in schedule_stage2_device_config()
(cherry picked from commit c41be469ab)
This commit is contained in:
parent
7828003bf8
commit
4e0882e923
1 changed files with 3 additions and 2 deletions
|
|
@ -2859,9 +2859,10 @@ nm_device_activate_schedule_stage2_device_config (NMDevice *self)
|
|||
if (!priv->master_ready_handled) {
|
||||
NMActiveConnection *active = NM_ACTIVE_CONNECTION (priv->act_request);
|
||||
|
||||
if (!nm_active_connection_get_master (active))
|
||||
if (!nm_active_connection_get_master (active)) {
|
||||
g_warn_if_fail (!priv->master_ready_id);
|
||||
priv->master_ready_handled = TRUE;
|
||||
else {
|
||||
} else {
|
||||
/* If the master connection is ready for slaves, attach ourselves */
|
||||
if (nm_active_connection_get_master_ready (active))
|
||||
master_ready (self, active);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue