mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 11:00:09 +01:00
manager: fix notification of the connectivity property
Notify DBus clients at the end of a connectivity check, and when NMConnectivity reports a change. https://bugzilla.gnome.org/show_bug.cgi?id=724550
This commit is contained in:
parent
a493cda8d6
commit
f6f216f0a9
1 changed files with 2 additions and 0 deletions
|
|
@ -647,6 +647,7 @@ checked_connectivity (GObject *object, GAsyncResult *result, gpointer user_data)
|
|||
else if ( connectivity == NM_CONNECTIVITY_PORTAL
|
||||
|| connectivity == NM_CONNECTIVITY_LIMITED)
|
||||
set_state (manager, NM_STATE_CONNECTED_SITE);
|
||||
g_object_notify (G_OBJECT (manager), NM_MANAGER_CONNECTIVITY);
|
||||
}
|
||||
|
||||
g_object_unref (manager);
|
||||
|
|
@ -4290,6 +4291,7 @@ connectivity_changed (NMConnectivity *connectivity,
|
|||
connectivity_states[state]);
|
||||
|
||||
nm_manager_update_state (self);
|
||||
g_object_notify (G_OBJECT (self), NM_MANAGER_CONNECTIVITY);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue