Parent: 16c3330a1591a0c9ec07a3e1c04e3c5c15b5f9b2
Author: Dmitriy Paliy <dmitriy.paliy@nokia.com>
Committer: Johan Hedberg <johan.hedberg@nokia.com>
Date: 2011-03-23 15:08:45
Tree: 6304a15b03ca46be69e1a044f83981824b2ae030
Add release all sessions when adapter is switched off All sessions should be released when adapter is switched off. Then a new RequestSession method call always results in change from power off to power on such ensuring operational mode. Otherwise, it is possible to end up in adapter state being powered off after RequestSession succeded. g_slist_free is not called after g_slist_foreach because the list is updated using g_slist_remove inside of session_free, which is called for each element by g_slist_foreach.
Diffstat
| M | src/adapter.c | | | 9 | +++++++++ |
1 files changed, 9 insertions(+), 0 deletions(-)