mirror of
https://github.com/juanfont/headscale.git
synced 2026-08-07 15:58:45 +09:00
bdc3e996de
waitForFollowup selected on ctx.Done() and the verdict channel with equal
priority; when both were ready, select picked at random and discarded a
successful registration as a spurious 401 timeout. Check for a completed
verdict first, race the deadline only if none is ready.
Fixes #3385
(cherry picked from commit d28a6b111a)