Audio: Handle Profile Connection in progress error 70/250170/2
authorAnupam Roy <anupam.r@samsung.com>
Sun, 20 Dec 2020 17:01:39 +0000 (22:31 +0530)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 22 Dec 2020 12:28:08 +0000 (17:58 +0530)
commit8145b8b4a250e3c5f18c909e2500216e2094ac4b
tree7f9fe226e6a8ae5c17b2332ac2ace6921bf00652
parente4ce93a114e464d34a1b59cba44848ecc54ae4da
Audio: Handle Profile Connection in progress error

Currently, bt-service does not check
if connection request for same device is
already under progress. This allows queuing
up multiple same requests in pending request list.
At the time of replying DBUS context, only one
request is returned & other requests are not freed.
In this patch, BLUETOOTH_ERROR_IN_PROGRESS error
is returned if same profile connection request
is pending.

Change-Id: I1e8ea43d8dc06e73b928c099bab8efc992b4125d
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
bt-service/services/audio/bt-service-audio.c
bt-service/services/bt-request-handler.c
bt-service/services/include/bt-service-audio-common.h