Skip to content

Commit

Permalink
Cancel HandleAdvertisingTimer timer in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Jan 29, 2024
1 parent 6c8137f commit ef2ced0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/Linux/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ void BLEManagerImpl::HandlePlatformSpecificBLEEvent(const ChipDeviceEvent * apEv
{
ChipLogError(DeviceLayer, "Disabling CHIPoBLE service due to error: %s", ErrorStr(err));
mServiceMode = ConnectivityManager::kCHIPoBLEServiceMode_Disabled;
DeviceLayer::SystemLayer().CancelTimer(HandleAdvertisingTimer, this);
sInstance.mFlags.Clear(Flags::kControlOpInProgress);
}

Expand Down

0 comments on commit ef2ced0

Please sign in to comment.