From 320110cd613275c9ef685c3ef808c7036b47778e Mon Sep 17 00:00:00 2001 From: kylecarbs Date: Tue, 10 May 2022 02:07:38 +0000 Subject: [PATCH] fix: Allow coderd to exit on error channel 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! --- cli/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/server.go b/cli/server.go index 0188394ccdacb..3b2392f51dd9b 100644 --- a/cli/server.go +++ b/cli/server.go @@ -361,6 +361,7 @@ func server() *cobra.Command { return err } case err := <-errCh: + shutdownConns() closeCoderd() return err case <-stopChan: