diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2017-10-20 10:37:11 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2017-10-20 11:15:16 +0200 |
commit | 9fea242f7251cba16a2c2a85d2b780acb9b6e916 (patch) | |
tree | fe04b2b751e47757bb141aea43fc6ec31f2d84e9 | |
parent | 01b10fe24d08a931545af7b74d4fdbdaa39113c8 (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
(cherry picked from commit ebb30c53cd636069a7391fed4f5b6e4dc970d861)
-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 7662c2e34..9744c4da2 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -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; |