Parent: f11e50810b3a61ec09ec7b8dab63bb90c92e2eae
Author: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-05-30 14:10:53
Tree: 9819220d1309696e32ada07d34fb96652fd54db0
android/a2dp: Fix removing device on incoming connection Connection state is not changed for incoming connection, i.e. during discovery device is still in disconnected state and in case connection fails for some reason, device won't be removed due to triggered state change disconnected->disconnected which is silently ignored. This patch fixes this problem by changing device state to connecting immediately after signalling channel is connected. This allows device to be removed properly in case something fails and is also consistent with behaviour of Bluedroid. In addition there's new flag added to device which stores information whether we're initiator of connection. This is required because before fix this property was decided based on HAL state which we can't now use since it will be always connecting for both incoming and outgoing connections.
Diffstat
| M | android/a2dp.c | | | 9 | ++++- - - - - |
1 files changed, 4 insertions(+), 5 deletions(-)