Misc mutex locking things to avoid data races
This commit is contained in:
10
server/process.go
Normal file
10
server/process.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user