From: Patrik Flykt Date: Wed, 23 May 2012 12:24:54 +0000 (+0300) Subject: service: Remove unnecessary setting of ipconfing to failure X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~155 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c8213f23b60fb46e6cd2572a6adc7ce4da13691;p=profile%2Fivi%2Fconnman.git service: Remove unnecessary setting of ipconfing to failure With this change service Connect will not report failure but instead wait for the Agent API to complete. The remaining __connman_network_disconnect() will reset ipconfig to IDLE state. If a service were set to failure state, the service would be ignored in later autoconnects. --- diff --git a/src/service.c b/src/service.c index 384d13d..01e01f2 100644 --- a/src/service.c +++ b/src/service.c @@ -5252,13 +5252,6 @@ int __connman_service_connect(struct connman_service *service) return -EINPROGRESS; } - __connman_service_ipconfig_indicate_state(service, - CONNMAN_SERVICE_STATE_FAILURE, - CONNMAN_IPCONFIG_TYPE_IPV4); - __connman_service_ipconfig_indicate_state(service, - CONNMAN_SERVICE_STATE_FAILURE, - CONNMAN_IPCONFIG_TYPE_IPV6); - if (service->network != NULL) __connman_network_disconnect(service->network); else if (service->type == CONNMAN_SERVICE_TYPE_VPN &&