mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-11 13:20:20 +01:00
core: signal parent-active only when the parent AC is activated
The parent-active signal is used by the manager to determine when the parent active-connection is ready and a connection that depend on it can proceed. The AC state could transition from ACTIVATING directly to DEACTIVATING; in such case we should not emit the signal but instead just stop watching the parent AC. Fixes:6e382ea91d('active-connection: add parent active connection tracking') https://bugzilla.redhat.com/show_bug.cgi?id=1778073 https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/510 (cherry picked from commit02ea74c920) (cherry picked from commit30be025e59) (cherry picked from commit678c6b6a6a)
This commit is contained in:
parent
b4fedfc57c
commit
197b4e7b15
1 changed files with 3 additions and 1 deletions
|
|
@ -1006,7 +1006,9 @@ parent_state_cb (NMActiveConnection *parent_ac,
|
|||
return;
|
||||
|
||||
unwatch_parent (self, TRUE);
|
||||
g_signal_emit (self, signals[PARENT_ACTIVE], 0, parent_ac);
|
||||
|
||||
if (parent_state == NM_ACTIVE_CONNECTION_STATE_ACTIVATED)
|
||||
g_signal_emit (self, signals[PARENT_ACTIVE], 0, parent_ac);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue