Correctly set the server state on install; closes pterodactyl/panel#2236

This commit is contained in:
Dane Everitt
2020-08-19 19:08:15 -07:00
parent 4d3a860604
commit 9d2321f357
4 changed files with 15 additions and 16 deletions

View File

@@ -185,3 +185,10 @@ func (s *Server) IsSuspended() bool {
func (s *Server) Build() *environment.Limits {
return &s.Config().Build
}
func (s *Server) ProcessConfiguration() *api.ProcessConfiguration {
s.RLock()
defer s.RUnlock()
return s.procConfig
}