manager: fix evaluation of manager state

The state should be set to CONNECTED_GLOBAL only when there is full
connectivity.

Fixes: 9d43869e47

https://bugzilla.gnome.org/show_bug.cgi?id=785281
(cherry picked from commit ebb30c53cd)
This commit is contained in:
Beniamino Galvani 2017-10-20 10:37:11 +02:00
parent 01b10fe24d
commit 9fea242f72

View file

@ -827,7 +827,7 @@ find_best_device_state (NMManager *manager)
case NM_ACTIVE_CONNECTION_STATE_ACTIVATED:
if ( nm_active_connection_get_default (ac)
|| nm_active_connection_get_default6 (ac)) {
if (priv->connectivity_state)
if (priv->connectivity_state == NM_CONNECTIVITY_FULL)
return NM_STATE_CONNECTED_GLOBAL;
best_state = NM_STATE_CONNECTED_SITE;