OSDN Git Service

Fix release all sessions on powering adapter off
authorDmitriy Paliy <dmitriy.paliy@nokia.com>
Wed, 19 Oct 2011 08:19:58 +0000 (11:19 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 19 Oct 2011 09:36:47 +0000 (12:36 +0300)
commitb2cf7cf26b684fd8a87d3e25308bf174b1e45b51
treec3fe07ad3acd6187cd3361a27c5aef8ca0333114
parent79f472538f1c1caa9b444d0de435159b6fbb70eb
Fix release all sessions on powering adapter off

When adapter is powered off, all sessions should be released without
changing mode, which is contrary to what session_remove does. This
prevents from such situation when powering off leads to new mode
derived from mode_sessions.

Currently, if there are multiple mode sessions requested by different
clients, powering adapter off results in powering immediately it on.
src/adapter.c