From: Daniel Wagner <[email protected]>

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.
---
 src/session.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/session.c b/src/session.c
index 7f26b99..9fecf81 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)
-- 
1.7.6

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

Reply via email to