Fix GetListeners mutex locking
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2022-03-02 19:27:46 +01:00
parent 1b930ab82f
commit 097aff358d

View file

@ -253,7 +253,7 @@ func (h *httpWriter) Flush() {
func (q *Queue) GetListeners() (listeners []*ListenerInformation) {
q.mutex.RLock()
defer q.mutex.Unlock()
defer q.mutex.RUnlock()
listeners = make([]*ListenerInformation, 0, 1)