On Thu, 2014-01-16 at 16:10 +0100, Daniel Wagner wrote:
> Is your argumentation that the user has to set AutoConnect flag in the
> first place? If yes, then how can we stop then
> __auto_connect_service() not to auto connect immediately? I don't
> follow you here how time-based knowledge helps at all.

One should add a check for the autoconnect reason and
SessionAutoConnectMode already in __connman_service_auto_connect() and
not schedule run_auto_connect() if SessionAutoConnectMode is set and a
normal autoconnect is commenced.

The autoconnect reason needs also to be handed over to
auto_connect_service(), so that it can make the correct decision (and
perhaps make the code more readable than what it is now).

Cheers,

        Patrik


_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to