From 9ce1be3b007721936c196f4b9663157158762a77 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Fri, 11 Mar 2016 17:01:26 -0500 Subject: [PATCH] For not shutdown triggered... --- command/server.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/command/server.go b/command/server.go index f85bbdebe..f0fc1750b 100644 --- a/command/server.go +++ b/command/server.go @@ -344,7 +344,7 @@ func (c *ServerCommand) Run(args []string) int { // Wait for shutdown shutdownTriggered := false - for { + for !shutdownTriggered { select { case <-c.ShutdownCh: c.Ui.Output("==> Vault shutdown triggered") @@ -358,9 +358,6 @@ func (c *ServerCommand) Run(args []string) int { c.Ui.Error(fmt.Sprintf("Error(s) were encountered during reload: %s", err)) } } - if shutdownTriggered { - break - } } return 0 }