bootstrapper: fix GracefulStop of InitServer

Let joinclient stop initserver only when itself initializes the node.
This commit is contained in:
Leonard Cohnen 2022-11-21 15:44:51 +01:00 committed by 3u13r
parent 1362e40f53
commit 0232c835ca
2 changed files with 8 additions and 1 deletions

View file

@ -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 {