From 14f573d3bef14157f54541e614d8a6bca906b28d Mon Sep 17 00:00:00 2001 From: Patrik Flykt Date: Mon, 10 Dec 2012 12:42:03 +0200 Subject: [PATCH] manager: -EINPROGRESS is a valid response for ConnectProvider With VPN connections being handled by connman-vpnd, -EINPROGRESS is a valid value to report to the caller if the VPN is already connecting. --- src/manager.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/manager.c b/src/manager.c index 51a3735..1d09267 100644 --- a/src/manager.c +++ b/src/manager.c @@ -235,14 +235,8 @@ static DBusMessage *connect_provider(DBusConnection *conn, } err = __connman_provider_create_and_connect(msg); - if (err < 0) { - if (err == -EINPROGRESS) { - connman_error("Invalid return code from connect"); - err = -EINVAL; - } - + if (err < 0) return __connman_error_failed(msg, -err); - } return NULL; } -- 2.7.4