Files
swiftcontrol/lib/utils
Jonas Acker e76dcf9acd fix(android): free network server ports when the app is swiped away
Swiping BikeControl out of recents left the process running: the
keep-alive foreground service was declared stopWithTask="false", and a
process with a foreground service is not killed on task removal. The
activity and its engine were destroyed, but the server sockets of the
dead isolate stayed bound. The next launch got a new engine in the same
process with an empty server registry, so the OpenBikeControl server
walked one port up per relaunch until all five were taken, and the
fixed-port MyWhoosh Link server failed to start at all.

- Stop the foreground service with the task, so swiping the app away
  ends the process like the overlay service already does. Backgrounding
  is unaffected.
- When the engine reports detached, close every network server so the
  ports are released even if the process lives on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 08:06:02 +02:00
..
2026-08-23 09:08:59 +02:00
2026-07-10 13:01:38 +02:00
2026-09-29 12:21:49 +02:00
2026-03-12 10:23:21 +01:00
2026-03-08 15:03:36 +01:00
2025-12-07 12:05:52 +01:00
2026-05-05 14:15:27 +02:00
2026-03-06 18:18:23 +01:00