From: DoHyun Pyun Date: Thu, 7 Dec 2017 01:52:38 +0000 (+0900) Subject: Fix TC fail issue in multi ADV senario X-Git-Tag: submit/tizen/20180110.041217~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ddb2555367de943f33c0ded7ced407cf3d1ef519;p=platform%2Fcore%2Fapi%2Fbluetooth.git Fix TC fail issue in multi ADV senario Change-Id: I443748754ed8322a5106bf55ab51596a30c048ba Signed-off-by: DoHyun Pyun --- 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);