Files
swiftcontrol/lib/bluetooth/devices/mywhoosh
Jonas Bark 9413a1fc56 fix(obc): resolve "Address already in use" on the OpenBikeControl server
The OpenBikeControl mDNS emulator hit EADDRINUSE on its fixed port 36867
when "Connect directly over network" was toggled off then on: the
un-awaited stop() hadn't released the socket before start() rebound it.

- Bump prop submodule: ResilientTcpServer now supersedes a stale
  same-port instance before binding and defaults to walking ports
  (portAttempts: 5).
- OBC advertises the ACTUAL bound port via mDNS instead of a hardcoded
  36867, so it can walk to a free port and stay reachable (mirrors the
  DirCon emulator). Companion apps read the port from the SRV record.
- Reset isStarted on every start-failure path so a genuinely blocked
  port no longer leaves the feature showing as "running".
- Pin MyWhoosh Link to portAttempts: 1 (fixed-port contract preserved).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 07:34:47 +02:00
..