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

@@ -143,7 +143,7 @@ func (s *Server) SyncWithEnvironment() {
} else {
// Checks if the server is now in a suspended state. If so and a server process is currently running it
// will be gracefully stopped (and terminated if it refuses to stop).
if s.GetState() != environment.ProcessOfflineState {
if s.Environment.State() != environment.ProcessOfflineState {
s.Log().Info("server suspended with running process state, terminating now")
go func(s *Server) {