From 2893ca8c59d584e60669b74beaeeb84cccfe6fa3 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 21 Mar 2017 14:55:56 +0100 Subject: 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: 40ffb962bec3700e447254d4a1cc93f21b8a25dd --- libnm/nm-active-connection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libnm/nm-active-connection.c b/libnm/nm-active-connection.c index a3792a1a55..412cb3babb 100644 --- a/libnm/nm-active-connection.c +++ b/libnm/nm-active-connection.c @@ -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 -- cgit v1.2.1