Switch old Server#GetState() calls over to Server#Environment#State()
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user