Commit ebb30c53 authored by Beniamino Galvani's avatar Beniamino Galvani

manager: fix evaluation of manager state

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

Fixes: 9d43869e

https://bugzilla.gnome.org/show_bug.cgi?id=785281
parent 5b50564a
......@@ -837,7 +837,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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment