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:
b8d772e
)
notifier: Return offline as global state if offline mode is enabled
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 29 Apr 2012 23:35:23 +0000
(
01:35
+0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 29 Apr 2012 23:35:23 +0000
(
01:35
+0200)
src/notifier.c
patch
|
blob
|
history
diff --git
a/src/notifier.c
b/src/notifier.c
index
b328a2a
..
55cea74
100644
(file)
--- a/
src/notifier.c
+++ b/
src/notifier.c
@@
-106,15
+106,15
@@
connman_bool_t __connman_notifier_is_connected(void)
static const char *evaluate_notifier_state(void)
{
+ if ( __connman_technology_get_offlinemode() == TRUE)
+ return "offline";
+
if (notifier_is_online() == TRUE)
return "online";
if (__connman_notifier_is_connected() == TRUE)
return "ready";
- if ( __connman_technology_get_offlinemode() == TRUE)
- return "offline";
-
return "idle";
}