mirror of
https://github.com/smittix/intercept.git
synced 2026-06-08 14:11:54 -07:00
80bbdb2c09
- Lock-protect `get_state` and `_set_state` to prevent data race between Flask and asyncio daemon threads - Atomically check-and-set CONNECTING guard in `connect()` to close TOCTOU window between concurrent Flask threads - Push status events outside the lock in both `_set_state` and `connect()` to avoid potential deadlock - Add TestMeshcoreContact, TestMeshcoreClientStateMachine tests covering to_dict keys, queue push on state change, message append and 500-item cap (9 -> 13 tests) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>