Skip to content

Commit 320110c

Browse files
committed
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!
1 parent 3660483 commit 320110c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ func server() *cobra.Command {
361361
return err
362362
}
363363
case err := <-errCh:
364+
shutdownConns()
364365
closeCoderd()
365366
return err
366367
case <-stopChan:

0 commit comments

Comments
 (0)