Skip to content

Commit

Permalink
Fix assert on SystemLayer().StartTimer call by aquiring the chipStack…
Browse files Browse the repository at this point in the history
… Lock before the call (#26200)
  • Loading branch information
jmartinez-silabs authored and pull[bot] committed Feb 16, 2024
1 parent 157efea commit 1eab2ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform/Linux/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,11 @@ void BLEManagerImpl::OnDeviceScanned(BluezDevice1 * device, const chip::Ble::Chi
}

mBLEScanConfig.mBleScanState = BleScanState::kConnecting;

chip::DeviceLayer::PlatformMgr().LockChipStack();
DeviceLayer::SystemLayer().StartTimer(kConnectTimeout, HandleConnectTimeout, mpEndpoint);
chip::DeviceLayer::PlatformMgr().UnlockChipStack();

mDeviceScanner->StopScan();

ConnectDevice(device, mpEndpoint);
Expand Down

0 comments on commit 1eab2ee

Please sign in to comment.