Skip to content

Commit

Permalink
Remedy race condition in advertising switch (#14241)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimlyall-q authored and pull[bot] committed Jan 26, 2022
1 parent 3349d73 commit 1367224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/qpg/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -930,8 +930,8 @@ void BLEManagerImpl::BleAdvTimeoutHandler(TimerHandle_t xTimer)
{
/* Stop advertising and defer restart for when stop confirmation is received from the stack */
ChipLogDetail(DeviceLayer, "bleAdv Timeout : Start slow advertissment");
sInstance.StopAdvertising();
sInstance.mFlags.Set(Flags::kRestartAdvertising);
sInstance.StopAdvertising();
}
else if (BLEMgrImpl().mFlags.Has(Flags::kAdvertising))
{
Expand Down

0 comments on commit 1367224

Please sign in to comment.