mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2025-02-17 09:37:45 +00:00
fix:gatt stop adv if bt off
Signed-off-by: zhanghaodong <zhanghaodong12@huawei.com>
This commit is contained in:
parent
cb563afbf7
commit
ee239a8859
@ -872,6 +872,7 @@ static void BcAdapterBtStateChanged(int32_t listenerId, int32_t state)
|
||||
for (uint8_t channelId = 0; channelId < GATT_ADV_MAX_NUM; channelId++) {
|
||||
AdvChannel *advChannel = &g_advChannel[channelId];
|
||||
advChannel->isAdvertising = false;
|
||||
(void)BleStopAdv(advChannel->advId);
|
||||
advChannel->advId = -1;
|
||||
}
|
||||
SoftBusMutexUnlock(&g_advLock);
|
||||
|
Loading…
x
Reference in New Issue
Block a user