projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dbc417
)
technology: Return proper error code when already disabled
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Thu, 21 Jun 2012 10:39:17 +0000
(13:39 +0300)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Mon, 25 Jun 2012 06:48:00 +0000
(09:48 +0300)
Return AlreadyDisabled to the caller instead of InProgress if we
are already disabled.
src/technology.c
patch
|
blob
|
history
diff --git
a/src/technology.c
b/src/technology.c
index
013ac78
..
3781b0c
100644
(file)
--- a/
src/technology.c
+++ b/
src/technology.c
@@
-673,7
+673,10
@@
done:
technology->pending_timeout = g_timeout_add_seconds(10,
technology_pending_reply, technology);
} else {
- reply = __connman_error_failed(msg, -err);
+ if (err == -EALREADY)
+ reply = __connman_error_already_disabled(msg);
+ else
+ reply = __connman_error_failed(msg, -err);
if (reply != NULL)
g_dbus_send_message(connection, reply);
}