projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93bce67
)
manager: -EINPROGRESS is a valid response for ConnectProvider
author
Patrik Flykt
<patrik.flykt@linux.intel.com>
Mon, 10 Dec 2012 10:42:03 +0000
(12:42 +0200)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Mon, 10 Dec 2012 11:01:06 +0000
(13:01 +0200)
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
patch
|
blob
|
history
diff --git
a/src/manager.c
b/src/manager.c
index
51a3735
..
1d09267
100644
(file)
--- 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;
}