service: Try to autoconnect favorite but failed services at boot
authorSamuel Ortiz <sameo@linux.intel.com>
Wed, 3 Nov 2010 16:48:19 +0000 (17:48 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 3 Nov 2010 17:08:37 +0000 (18:08 +0100)
src/service.c

index 8e1171b..ec51a8b 100644 (file)
@@ -4295,7 +4295,8 @@ static int service_load(struct connman_service *service)
                str = g_key_file_get_string(keyfile,
                                service->identifier, "Failure", NULL);
                if (str != NULL) {
-                       service->state = CONNMAN_SERVICE_STATE_FAILURE;
+                       if (service->favorite == FALSE)
+                               service->state = CONNMAN_SERVICE_STATE_FAILURE;
                        service->error = string2error(str);
                }
                break;