diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-08-11 16:56:18 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-08-11 17:40:53 +0200 |
commit | 94b80ba600d314127427b9948459a4c86a05015d (patch) | |
tree | af518c8f688f88ab42ac02182cc49b80a8599ce1 /src | |
parent | 5fdcc5ab4da1efaf08497a749b191b16ed2a9b44 (diff) | |
download | connman-94b80ba600d314127427b9948459a4c86a05015d.tar.gz connman-94b80ba600d314127427b9948459a4c86a05015d.tar.bz2 connman-94b80ba600d314127427b9948459a4c86a05015d.zip |
session: Allways allow set session mode
If the unit test framework crashes it can happen that the session mode
is still enabled but we have a connected service. So if the unit test
restarted we wont disconnect all services and therefore block for
ever. Since it is safe to call __connman_service_disconnect_all()
again there is no need to disallow this operation.
Diffstat (limited to 'src')
-rw-r--r-- | src/session.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/session.c b/src/session.c index 7f26b99c..9fecf81b 100644 --- a/src/session.c +++ b/src/session.c @@ -1561,9 +1561,6 @@ void __connman_session_set_mode(connman_bool_t enable) { DBG("enable %d", enable); - if (sessionmode == enable) - return; - sessionmode = enable; if (sessionmode == TRUE) |