mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Allow coderd to exit on error channel (#1355)
coderd would fail silently if this was called, because connections would never drain. HashiCorp's hc-install package broke today, and we couldn't notice because this was hanging!
This commit is contained in:
@@ -361,6 +361,7 @@ func server() *cobra.Command {
|
||||
return err
|
||||
}
|
||||
case err := <-errCh:
|
||||
shutdownConns()
|
||||
closeCoderd()
|
||||
return err
|
||||
case <-stopChan:
|
||||
|
||||
Reference in New Issue
Block a user