agent: Update __connman_agent_report_error to return -EINPROGRESS
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 23 May 2012 12:24:57 +0000 (15:24 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 28 May 2012 07:08:49 +0000 (10:08 +0300)
Handle the change from -EIO to -EINPROGRESS return value in
service.c.

src/agent.c
src/service.c

index 0aadb21..82dc46d 100644 (file)
@@ -720,7 +720,7 @@ int __connman_agent_report_error(struct connman_service *service,
                                report_error, NULL);
        dbus_message_unref(message);
 
-       return -EIO;
+       return -EINPROGRESS;
 }
 
 int __connman_agent_init(void)
index caecc22..4ad75e8 100644 (file)
@@ -4718,7 +4718,7 @@ static int service_indicate_state(struct connman_service *service)
                if (service->userconnect == TRUE &&
                        __connman_agent_report_error(service,
                                        error2string(service->error),
-                                       report_error_cb, NULL) == -EIO)
+                                       report_error_cb, NULL) == -EINPROGRESS)
                        return 0;
                service_complete(service);
        } else