manager: don't update the manager state in get_property()

The manager state is already computed every time an active connection
changes state, it is not necessary to call nm_manager_update_state()
also when the property is read.

Moreover, nm_manager_update_state() emits a "notify::state" signal
which causes a re-read of the property by the nm-exported-object,
resulting in a nested execution of nm_manager_update_state().

(cherry picked from commit 4cc45ee291)
This commit is contained in:
Beniamino Galvani 2016-12-12 14:10:23 +01:00
parent a9135e983d
commit 151dbe10b1

View file

@ -5655,7 +5655,6 @@ get_property (GObject *object, guint prop_id,
g_value_set_string (value, VERSION);
break;
case PROP_STATE:
nm_manager_update_state (self);
g_value_set_uint (value, priv->state);
break;
case PROP_STARTUP: