Skip to content

Commit 1393714

Browse files
jmartinez-silabspull[bot]
authored andcommitted
Fix assert on SystemLayer().StartTimer call by aquiring the chipStack Lock before the call (#26200)
1 parent 71d6b82 commit 1393714

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/platform/Linux/BLEManagerImpl.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,11 @@ void BLEManagerImpl::OnDeviceScanned(BluezDevice1 * device, const chip::Ble::Chi
796796
}
797797

798798
mBLEScanConfig.mBleScanState = BleScanState::kConnecting;
799+
800+
chip::DeviceLayer::PlatformMgr().LockChipStack();
799801
DeviceLayer::SystemLayer().StartTimer(kConnectTimeout, HandleConnectTimeout, mpEndpoint);
802+
chip::DeviceLayer::PlatformMgr().UnlockChipStack();
803+
800804
mDeviceScanner->StopScan();
801805

802806
ConnectDevice(device, mpEndpoint);

0 commit comments

Comments
 (0)