From e6f1ce1fb2a8acd5f839f819ee04c64219cdf257 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Mon, 9 May 2022 21:19:20 -0500 Subject: [PATCH] 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! --- cli/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/server.go b/cli/server.go index 0188394ccd..3b2392f51d 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: