mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-29 09:11:17 +01:00
After an in-place "No connection" disconnect, selecting Virtual Shifting again reconnected the BLE upstream but the connect never completed: device.isConnected stayed false and the card hung on "connecting". The listener that flips isConnected (and drives the handshake to completion) is created only in _connect(), which runs once via the auto-connect queue at app start. The first manual connect reuses that listener; disconnect cancels it (so a BLE drop doesn't fire auto-reconnect); the second manual connect via startProxy() had no listener and never re-ran _connect. Route the in-place reconnect through a new Connection.connectDevice() wrapper over _connect, re-attaching the action / connection-state listeners — the same path the working auto-connect uses — instead of calling ProxyDevice.startProxy() directly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>