summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Houston <stephen@localhost.localdomain>2017-11-21 12:29:56 -0600
committerStephen Houston <stephen@localhost.localdomain>2017-11-21 12:29:56 -0600
commit02f8e0d59724c0c29ffc5d967549f5cb154a25d5 (patch)
treef22ed699e606daa6db42d7690aa9048e4fb17958
parent11626df018dcec6c8cc7f0ae48c04aaad849eee4 (diff)
Fix connecting to a wifi net.
-rw-r--r--src/networkmanager.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/networkmanager.c b/src/networkmanager.c
index 62748d1..3c666ac 100644
--- a/src/networkmanager.c
+++ b/src/networkmanager.c
@@ -938,7 +938,6 @@ static void
938_networkmanager_service_state(void *data, int state) 938_networkmanager_service_state(void *data, int state)
939{ 939{
940 NetworkManager_Service *ns = data; 940 NetworkManager_Service *ns = data;
941 int i;
942 941
943 if (state <= 0) 942 if (state <= 0)
944 ns->device_state = NETWORKMANAGER_STATE_NONE; /* All unknown states */ 943 ns->device_state = NETWORKMANAGER_STATE_NONE; /* All unknown states */
@@ -965,10 +964,11 @@ _networkmanager_service_state(void *data, int state)
965 else 964 else
966 ns->state = NETWORKMANAGER_STATE_IDLE; 965 ns->state = NETWORKMANAGER_STATE_IDLE;
967 966
968 NETWORKMANAGER_SERVICE_TYPE_ITER(i)
969 _networkmanager_update_networks(i);
970 if (_networkmanager_service_is_connected(ns)) 967 if (_networkmanager_service_is_connected(ns))
971 _networkmanager_update_current_network(ns, ns->type); 968 {
969 _networkmanager_update_networks(ns->type);
970 _networkmanager_update_current_network(ns, ns->type);
971 }
972} 972}
973 973
974static NetworkManager_Service * 974static NetworkManager_Service *