diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-05-02 14:54:42 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-05-04 16:18:45 +0300 |
commit | 2ec6983afee4f475ff8ab5bff70782b5979494f1 (patch) | |
tree | 71cba571c3c6e5e41898e7fdf14790c41ea56b4f | |
parent | c4640fe102a75a4257f42d6a61e589f63df7eaad (diff) | |
download | connman-2ec6983afee4f475ff8ab5bff70782b5979494f1.tar.gz connman-2ec6983afee4f475ff8ab5bff70782b5979494f1.tar.bz2 connman-2ec6983afee4f475ff8ab5bff70782b5979494f1.zip |
notifier: Evaluate offline state after 'online' and 'ready'
-rw-r--r-- | src/notifier.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/notifier.c b/src/notifier.c index 55cea743..b328a2ad 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"; } |