Commit: 2e2edc36a91d6a8f2c65d793273df28a166d6bed
Parent: 142093f1c2f07b5709278af1bbfc78dbe6ab947c
Author: Miroslav Koskar <mk@mkoskar.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2016-06-13 12:08:51
Tree: d4d8477859d0421b54c568cb18789bdb1b58a4e9

core/service: Allow disconnected -> connected state change By ignoring case where service->state == BTD_SERVICE_STATE_DISCONNECTED in btd_service_connecting_complete(), state_callbacks don't get executed. Such case occurs when e.g., phone using a2dp-source profile connects to the bluez. Because no state_callbacks are executed (including one added by policy plugin) no reconnection is attempted after connection timeout, although if situation is reversed (bluez connects to the phone) reconnection works.

Diffstat

M src/service.c | 3 ++-

1 files changed, 2 insertions(+), 1 deletions(-)

View Full Diff | Patch