Skip to content

Commit d9314a3

Browse files
committed
fix: clear any stale expectedDisconnectPaths marker at the start of connectOnce, so a reused BLE path can never carry a leaked suppression marker into a new session
1 parent cffd565 commit d9314a3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Bitkit/Services/Trezor/TrezorBLEManager.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ class TrezorBLEManager: NSObject {
294294
// Clean up any stale connection state (preserves discoveredPeripherals cache)
295295
cleanupConnectionState()
296296

297+
// Drop any stale deliberate-disconnect marker from a prior session so it can't
298+
// suppress a future spontaneous drop on this reused path.
299+
expectedDisconnectPaths.remove(path)
300+
297301
debugLog("connectOnce: \(path)")
298302

299303
// Try to get peripheral from cache first

0 commit comments

Comments
 (0)