core: Fix cleaning pending services when ACL connection failed 40/22540/1
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Wed, 4 Jun 2014 15:14:44 +0000 (17:14 +0200)
committerSebastian Chlad <sebastian.chlad@tieto.com>
Thu, 5 Jun 2014 14:29:16 +0000 (16:29 +0200)
commit4fa360402bd58c73d31ec629fc4816ef24a9d160
tree51a3fa19be3574db2c23fde499c52c6dfd05c982
parent5debf35840cfe96421e8c32d9a5721f2f342fd54
core: Fix cleaning pending services when ACL connection failed

In case ACL connection failed to establish, all pending services shall
be always removed. At the moment it's only done in case there's pending
Connect message which does not take into account reconnect scenario,
i.e. service connection was triggered by reconnection timeout and there
is no pending message.

In such case, when reconnection failed there will be some services on
pending list and subsequent reconnect attempts will fail with EBUSY
immediately.

Change-Id: I785bd791c8623a4452310d410e3dbb524e9976ec
Signed-off-by: Sebastian Chlad <sebastianx.chlad@intel.com>
src/device.c