diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2017-10-20 10:37:11 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2017-10-20 10:37:11 +0200 |
commit | ebb30c53cd636069a7391fed4f5b6e4dc970d861 (patch) | |
tree | e94901c451ee500f6a427cb5ac144b97fd2686ca | |
parent | 5b50564a8a9ab7b656800d6d33040add8d7791d9 (diff) |
manager: fix evaluation of manager state
The state should be set to CONNECTED_GLOBAL only when there is full
connectivity.
Fixes: 9d43869e473b47542520c807dace93a6f9520964
https://bugzilla.gnome.org/show_bug.cgi?id=785281
-rw-r--r-- | src/nm-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-manager.c b/src/nm-manager.c index a0224d0e3..fa67ee784 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -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; |