diff --git a/queue.go b/queue.go index e1da4a1..d5b448a 100644 --- a/queue.go +++ b/queue.go @@ -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)