Files
wanderer/test/unit
Guarzo af2a265c71 fix(tracker): characters stop moving on the map after a browser disconnect
maybe_start_location_tracking/2 matched %{track_location: true} in the
track_settings argument. No caller passes that key -- all five call sites
send %{map_id: _, track: true | false} -- so the clause never matched and
the function could not turn location tracking on. maybe_start_ship_tracking/2
had the identical defect.

Match on the state's active_maps instead: a character on at least one map
should be polling their location.

Without this, a character is stranded by an event they never initiated. When
a browser's presence lapses past the grace period the character is untracked
server-side, active_maps empties, and maybe_stop_tracking/2 clears
track_location. The character is still online in EVE throughout, and the only
other writer -- update_online/1 -- is gated on an online-status transition
that a character who stays logged in never produces. So the browser
reconnecting cannot restore it. update_location/1 then falls through to its
catch-all on every tick, and the character stops moving on the map while
every liveness signal keeps reporting healthy.

This is why #620 reports that toggling tracking off and on does not help but
relogging in EVE does: toggling routes through the dead clause, while
relogging produces the online transition that restores the flag as a side
effect.

Fixes #620
2026-08-11 19:56:05 +00:00
..
2025-12-02 17:55:05 +00:00
2025-07-16 20:39:30 +00:00
2025-11-24 11:33:08 +01:00
2025-11-24 11:33:08 +01:00
2025-11-25 12:28:31 +01:00
2025-11-24 11:33:08 +01:00
2025-11-24 11:33:08 +01:00
2025-07-17 23:19:18 +00:00