Misc mutex locking things to avoid data races

This commit is contained in:
Dane Everitt
2020-07-18 16:03:25 -07:00
parent 0b9d923d15
commit 8315ff8ae1
8 changed files with 98 additions and 40 deletions

10
server/process.go Normal file
View File

@@ -0,0 +1,10 @@
package server
import "github.com/pterodactyl/wings/api"
func (s *Server) ProcessConfiguration() *api.ProcessConfiguration {
s.RLock()
defer s.RUnlock()
return s.procConfig
}