mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00: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.