mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-10 17:30:17 +01:00
device: assert that master-ready handler is not scheduled in schedule_stage2_device_config()
This commit is contained in:
parent
7bbc090387
commit
c41be469ab
1 changed files with 3 additions and 2 deletions
|
|
@ -3056,9 +3056,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