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 17:52:58 +0100
commit7de4912ff05ef291f54d87c2ad5edc5c2d193f49 (patch)
treedbf228de680c81a3d1e3b77d6f2dca555cc46ba0
parent9749fdbf34d5ebc8a3f2f1a43fabef3af43505fd (diff)
downloadNetworkManager-7de4912ff05ef291f54d87c2ad5edc5c2d193f49.tar.gz
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 https://bugzilla.redhat.com/show_bug.cgi?id=1433883
-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