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 Apr 23, 2023
1 parent 65f075c commit de0dfcf
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 de0dfcf

Please sign in to comment.