session: Split test_and_disconnect()
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 11 Aug 2011 14:56:17 +0000 (16:56 +0200)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 11 Aug 2011 15:40:52 +0000 (17:40 +0200)
commit21bd2c1678eb66cd2361e099f4f93739f2e30ba3
tree1b7920a9b34df245bd77f99e7d6f922261d345f7
parent55abcc392d9e291eecb47785ba5ca308ccb60313
session: Split test_and_disconnect()

Do split the testing into its own function and also reset the entry
member back before we call __connman_service_disconnect().

This is necessary because calling __connman_serivice_disconnect() we can
end up beeing called session_changed() before we have updated the entry.
src/session.c