summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2017-03-21 14:55:56 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2017-03-21 14:55:56 +0100
commit2893ca8c59d584e60669b74beaeeb84cccfe6fa3 (patch)
treeb2dcd8df78f311f9f73eac62d154df8bb8503eb5
parent2e0c3d1dacfa06fad0062d272fc77ecc34ba4576 (diff)
downloadNetworkManager-bg/ac-state-signal-rh1433883.tar.gz
libnm: fix emission of NMActiveConnection::state notify signalbg/ac-state-signal-rh1433883
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
-rw-r--r--libnm/nm-active-connection.c1
1 files changed, 1 insertions, 0 deletions
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