mirror of
https://github.com/smittix/intercept.git
synced 2026-07-05 16:18:12 -07:00
Fix BT/WiFi run-state health and BT Locate tracking continuity
This commit is contained in:
@@ -3910,7 +3910,10 @@
|
||||
const btScanActive = (typeof BluetoothMode !== 'undefined' &&
|
||||
typeof BluetoothMode.isScanning === 'function' &&
|
||||
BluetoothMode.isScanning()) || isBtRunning;
|
||||
if (btScanActive && typeof stopBtScan === 'function') stopBtScan();
|
||||
const isBtModeTransition =
|
||||
(currentMode === 'bluetooth' && mode === 'bt_locate') ||
|
||||
(currentMode === 'bt_locate' && mode === 'bluetooth');
|
||||
if (btScanActive && !isBtModeTransition && typeof stopBtScan === 'function') stopBtScan();
|
||||
if (isAprsRunning) stopAprs();
|
||||
if (isTscmRunning) stopTscmSweep();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user