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 240da89..5bba620 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);
        }