Same uuids are in used if client instance register request is coming
right before server instance initialized
Change-Id: I93438ae0cadbceefc6c819454bfec3776e40ddb6
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
/* App should ensure that it should not send */
BT_INFO("Check on which instance GATT Client instance can be initialized....");
for (k = 1; k < MAX_APPS_SUPPORTED; k++) {
- if (numapps[k].is_initialized == 1) {
+ if (numapps[k].is_initialized == 1 || strlen(numapps[k].uuid) > 0) {
BT_DBG("Instance ID [%d] is already in use..Check next slot",
numapps[k].instance_id);
} else {