Skip to content

Commit

Permalink
Properly shutdown the server before exiting
Browse files Browse the repository at this point in the history
Make sure the server finishes shutting down before exiting, because
otherwise it will hold open files, and this intermittently breaks tests
on Windows.  Closes #338.  I hope.
  • Loading branch information
josh-berry committed Oct 19, 2023
1 parent 676fd19 commit 52aaf37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ func NewServerCommands(defaultCfg *sconfig.Config) []*cli.Command {
if err := s.Start(); err != nil {
return cli.Exit(fmt.Sprintf("Unable to start server. Error: %v", err), 1)
}
s.Stop()
return cli.Exit("All services are stopped.", 0)
},
},
Expand Down

0 comments on commit 52aaf37

Please sign in to comment.