Check for seal status when initing and change logic order to avoid defer

This commit is contained in:
Jeff Mitchell
2016-04-14 01:12:58 +00:00
parent 4c5af806ef
commit d273a051c7
4 changed files with 20 additions and 7 deletions

View File

@@ -376,6 +376,11 @@ func (c *ServerCommand) Run(args []string) int {
}
}
}
for _, listener := range lns {
listener.Close()
}
return 0
}