summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-04-30 01:35:23 +0200
committerMarcel Holtmann <marcel@holtmann.org>2012-04-30 01:35:23 +0200
commitbfd6e7c7618a29bc95c344d17ea9c15d70932ec2 (patch)
treeff69dca3063dcea78b8a457ee033317545338d97
parentb8d772eafa6d3c234616a9e71bb24b7738856f75 (diff)
downloadconnman-bfd6e7c7618a29bc95c344d17ea9c15d70932ec2.tar.gz
connman-bfd6e7c7618a29bc95c344d17ea9c15d70932ec2.tar.bz2
connman-bfd6e7c7618a29bc95c344d17ea9c15d70932ec2.zip
notifier: Return offline as global state if offline mode is enabled
-rw-r--r--src/notifier.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/notifier.c b/src/notifier.c
index b328a2ad..55cea743 100644
--- 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";
}