network: Back to IDLE when network is not connected
authorSamuel Ortiz <sameo@linux.intel.com>
Fri, 11 Feb 2011 12:08:49 +0000 (13:08 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 11 Feb 2011 12:08:49 +0000 (13:08 +0100)
src/network.c

index 240da894531090bc02263c4751d08fa1647de45b..5bba620c8e967d26682fddd010478a31ca927156 100644 (file)
@@ -877,11 +877,11 @@ static gboolean set_connected(gpointer user_data)
                service = __connman_service_lookup_from_network(network);
 
                __connman_service_indicate_state(service,
-                                       CONNMAN_SERVICE_STATE_DISCONNECT,
+                                       CONNMAN_SERVICE_STATE_IDLE,
                                        CONNMAN_IPCONFIG_TYPE_IPV4);
 
                __connman_service_indicate_state(service,
-                                       CONNMAN_SERVICE_STATE_DISCONNECT,
+                                       CONNMAN_SERVICE_STATE_IDLE,
                                        CONNMAN_IPCONFIG_TYPE_IPV6);
        }