mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-08-08 06:46:11 +00:00
Addresses review on #812. Each retry resampled the route but never rechecked the gate against it, so a route change during a request or its backoff walked straight past a cooldown. A Tor attempt failing with a 500, then the user switching to a direct connection that is already rate limited, and the next attempt contacts it regardless. The check moves inside the loop, immediately after the route is sampled, which makes it cover the first attempt too -- the separate post-wait check it replaces was only ever that first iteration. The check before the route wait stays: knowing the selected route is blocked is worth avoiding a sixty-second Tor bootstrap for. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>