Address some race conditions

This commit is contained in:
Dane Everitt
2020-07-19 17:46:39 -07:00
parent 21e58b57a1
commit e28c05ae56
5 changed files with 28 additions and 5 deletions

View File

@@ -126,7 +126,7 @@ func (s *Server) SetState(state string) error {
// Returns the current state of the server in a race-safe manner.
func (s *Server) GetState() string {
return s.Proc().State
return s.Proc().getInternalState()
}
// Determines if the server state is running or not. This is different than the