Switch old Server#GetState() calls over to Server#Environment#State()

This commit is contained in:
Matthew Penner
2020-11-20 14:35:29 -07:00
parent 287b286940
commit 73b221d022
7 changed files with 11 additions and 11 deletions

View File

@@ -75,7 +75,7 @@ func (s *Server) Install(sync bool) error {
// Reinstalls a server's software by utilizing the install script for the server egg. This
// does not touch any existing files for the server, other than what the script modifies.
func (s *Server) Reinstall() error {
if s.GetState() != environment.ProcessOfflineState {
if s.Environment.State() != environment.ProcessOfflineState {
s.Log().Debug("waiting for server instance to enter a stopped state")
if err := s.Environment.WaitForStop(10, true); err != nil {
return err