mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-07 22:42:22 -04:00
bootstrapper: fix GracefulStop of InitServer
Let joinclient stop initserver only when itself initializes the node.
This commit is contained in:
parent
1362e40f53
commit
0232c835ca
2 changed files with 8 additions and 1 deletions
|
@ -148,7 +148,11 @@ func (s *Server) Init(ctx context.Context, req *initproto.InitRequest) (*initpro
|
|||
|
||||
// Stop stops the initialization server gracefully.
|
||||
func (s *Server) Stop() {
|
||||
s.log.Infof("Stopping")
|
||||
|
||||
s.grpcServer.GracefulStop()
|
||||
|
||||
s.log.Infof("Stopped")
|
||||
}
|
||||
|
||||
func (s *Server) setupDisk(masterSecret, salt []byte) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue