mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 06:20:17 +01:00
libnm: fix emission of NMActiveConnection::state notify signal
state_changed_proxy() updates the value of @state and must also emit
the notify signal for it.
Without this, when the PropertiesChanged signal carrying the change of
'state' arrives after StateChanged, we notice that the value of @state
doesn't change and don't emit the notify, causing a loss of the state
change event.
Fixes: 40ffb962be
https://bugzilla.redhat.com/show_bug.cgi?id=1433883
This commit is contained in:
parent
9749fdbf34
commit
7de4912ff0
1 changed files with 1 additions and 0 deletions
|
|
@ -391,6 +391,7 @@ state_changed_proxy (NMDBusActiveConnectionProxy *proxy,
|
|||
priv->state = state;
|
||||
priv->reason = reason;
|
||||
g_signal_emit (connection, signals[STATE_CHANGED], 0, state, reason);
|
||||
g_object_notify (G_OBJECT (connection), NM_ACTIVE_CONNECTION_STATE);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue