Use __connman_service_clear_error() to return the service to idle state
as also ipconfigs for IPv4 and IPv6 need to be set to idle state.

Fixes CM-662
---

This should fix the other half of the reported CM-662

     Patrik


 src/service.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/service.c b/src/service.c
index 5f12950..aab0e9f 100644
--- a/src/service.c
+++ b/src/service.c
@@ -5014,7 +5014,7 @@ static void report_error_cb(void *user_context, bool 
retry,
        else {
                /* It is not relevant to stay on Failure state
                 * when failing is due to wrong user input */
-               service->state = CONNMAN_SERVICE_STATE_IDLE;
+               __connman_service_clear_error(service);
 
                service_complete(service);
                __connman_connection_update_gateway();
-- 
1.9.1

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to