mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
fixes https://github.com/coder/internal/issues/525 If the context is canceled, the goroutine that is supposed to read from the `errCh` could exit prematurely, leading to a goroutine leak. Refactors this code so it cannot block.