session: Do not select ongoing service again
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Mon, 17 Oct 2011 13:50:17 +0000 (15:50 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 20 Oct 2011 22:28:35 +0000 (00:28 +0200)
commit3dc085c888225047f6b266bbf883b8dc88e4752c
tree5dd6007899eb67b2118bb9f5e68f5038f8221902
parentea36c339dea11aeaf065df5f95a0d5bb6bcdf0e4
session: Do not select ongoing service again

In case Session.Connect() is called several times while
the selected services is still going from the IDLE state
to ONLINE state (or error state), do not call
select_and_connect() again. This leads to an inconsistent
ref counting on the service.

Fixes BMC#23630
src/session.c