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 Aug 4, 2023
1 parent 3a7da90 commit 6ba6788
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 6ba6788

Please sign in to comment.