Hi Patrik,

> With this change I seem to get the state changes in a correct order. Are there
> any particular steps where it does not work that I can test with?

my issues with ONLINE and then switching OfflineMode=true. It got stuck
in READY and never went through IDLE and finally OFFLINE. If that works,
the problem I had would be fixed.

> diff --git a/src/notifier.c b/src/notifier.c
> index 55cea74..b328a2a 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";
>  }
>  

This just reverts my patch. Please run monitor-servers and see if we get
the transition into OFFLINE correct when switching OfflineMode=true.

Regards

Marcel


_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to