mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 10:30:13 +01:00
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:
parent
a9135e983d
commit
151dbe10b1
1 changed files with 0 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue