From ddb2555367de943f33c0ded7ced407cf3d1ef519 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Thu, 7 Dec 2017 10:52:38 +0900 Subject: [PATCH] Fix TC fail issue in multi ADV senario Change-Id: I443748754ed8322a5106bf55ab51596a30c048ba Signed-off-by: DoHyun Pyun --- src/bluetooth-adapter.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bluetooth-adapter.c b/src/bluetooth-adapter.c index aadf776..91289f9 100644 --- a/src/bluetooth-adapter.c +++ b/src/bluetooth-adapter.c @@ -1618,9 +1618,15 @@ int bt_adapter_le_destroy_advertiser(bt_advertiser_h advertiser) error_code = bluetooth_set_advertising(__adv->handle, FALSE); ret = _bt_get_error_code(error_code); - if (ret != BT_ERROR_NONE) + if (ret != BT_ERROR_NONE) { BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(ret), ret); /* LCOV_EXCL_LINE */ + + if (ret == BT_ERROR_NOT_IN_PROGRESS) { + /* Other advertising handle is in there */ + ret = BT_ERROR_NONE; + } + } } advertiser_list = g_slist_remove(advertiser_list, __adv); -- 2.34.1