diff options
Diffstat (limited to 'plugins/websockets/plugin.go')
-rw-r--r-- | plugins/websockets/plugin.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/websockets/plugin.go b/plugins/websockets/plugin.go index 5925a588..4420916c 100644 --- a/plugins/websockets/plugin.go +++ b/plugins/websockets/plugin.go @@ -240,13 +240,13 @@ func (p *Plugin) Middleware(next http.Handler) http.Handler { } // Workers returns slice with the process states for the workers -func (p *Plugin) Workers() []process.State { +func (p *Plugin) Workers() []*process.State { p.RLock() defer p.RUnlock() workers := p.workers() - ps := make([]process.State, 0, len(workers)) + ps := make([]*process.State, 0, len(workers)) for i := 0; i < len(workers); i++ { state, err := process.WorkerProcessState(workers[i]) if err != nil { |