Release the averaging goroutine when checks outlast transfers, with a regression
test for the completion order.
Assisted-by: OpenAI Codex
(cherry picked from commit 4f0148db0c)
Release the averaging goroutine when checks outlast transfers, with a regression
test for the completion order.
Assisted-by: OpenAI Codex
(cherry picked from commit 4f0148db0c)