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:

committed by
Dan Winship

parent
a493cda8d6
commit
f6f216f0a9
@@ -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
|
||||
|
Reference in New Issue
Block a user