Change-Id: I443748754ed8322a5106bf55ab51596a30c048ba
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
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);