Fix GetListeners mutex locking
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1b930ab82f
commit
097aff358d
2
queue.go
2
queue.go
|
@ -253,7 +253,7 @@ func (h *httpWriter) Flush() {
|
||||||
|
|
||||||
func (q *Queue) GetListeners() (listeners []*ListenerInformation) {
|
func (q *Queue) GetListeners() (listeners []*ListenerInformation) {
|
||||||
q.mutex.RLock()
|
q.mutex.RLock()
|
||||||
defer q.mutex.Unlock()
|
defer q.mutex.RUnlock()
|
||||||
|
|
||||||
listeners = make([]*ListenerInformation, 0, 1)
|
listeners = make([]*ListenerInformation, 0, 1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue