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:
Beniamino Galvani 2017-03-21 14:55:56 +01:00
parent 9749fdbf34
commit 7de4912ff0

View file

@ -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