On 01/15/2014 04:11 PM, Patrik Flykt wrote: > On Wed, 2014-01-15 at 15:55 +0100, Daniel Wagner wrote: >> IIRC we discussed the benefits of having a __connman_auto_disconnect() >> and we agreed that it is not brilliant idea. Instead it would be >> better when the auto connect part handles this. > > I can't remember anymore what we discussed (f2f?), but it would be > better to disconnect the service when it is known that a session > connected it and the last session using it has closed.
http://permalink.gmane.org/gmane.comp.handhelds.moblin.connman/15856 My understanding was that you didn't like to have an explicit call to disconnect. Instead it should be part of auto connect which makes really sense. In this series, auto connect tries first to connect something (and my plan for later would also like switch from one service to another if needed) and in the second step to disconnect unused services. auto_connect_service() is quite difficult to understand I didn't want to touch it right now. My thinking is do baby steps here. The good thing is that auto_connect_service() doesn't change for non-session users at all. cheers, daniel _______________________________________________ connman mailing list [email protected] https://lists.connman.net/mailman/listinfo/connman
